Merge pull request #3345 from mpappas86/bugfix/ec2groupCheckMode

Prevent ec2group from deleting sgs during check_mode runs
reviewable/pr18780/r1
Matt Davis 9 years ago
commit c1f802137b

@ -285,6 +285,7 @@ def main():
if group:
'''found a match, delete it'''
try:
if not module.check_mode:
group.delete()
except Exception as e:
module.fail_json(msg="Unable to delete security group '%s' - %s" % (group, e))

Loading…
Cancel
Save