This commit is contained in:
Ryan Lane 2015-04-14 16:51:20 -07:00
parent 0aac2a9959
commit 1a9e307307

View File

@ -455,9 +455,9 @@ def group_present(name, policies=None, policies_from_pillars=None, users=None, r
return ret
created = __salt__['boto_iam.create_group'](group_name=name, region=region, key=key, keyid=keyid, profile=profile)
if not created:
ret['comment'] = 'IAM user {0} is set to be created.'.format(name)
ret['result'] = None
# TODO: throw error here
ret['comment'] = 'Failed to create IAM user {0}.'.format(name)
ret['result'] = False
return ret
ret['changes']['group'] = created
ret['comment'] = os.linesep.join([ret['comment'], 'Group {0} has been created.'.format(name)])
else: