mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix TODO
This commit is contained in:
parent
0aac2a9959
commit
1a9e307307
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user