Commit ea2a6659 by Michael DeHaan

Styling: misc pep8

parent f2fc1856
...@@ -119,22 +119,22 @@ def stack_operation(cfn, stack_name, operation): ...@@ -119,22 +119,22 @@ def stack_operation(cfn, stack_name, operation):
output='Stack Deleted', output='Stack Deleted',
events=map(str, list(stack.describe_events()))) events=map(str, list(stack.describe_events())))
else: else:
result = dict (changed= True, output='Stack Not Found') result = dict(changed= True, output='Stack Not Found')
break break
if '%s_COMPLETE' % operation == stack.stack_status: if '%s_COMPLETE' % operation == stack.stack_status:
result = dict(changed=True, result = dict(changed=True,
events = map(str, list(stack.describe_events())), events = map(str, list(stack.describe_events())),
output = 'Stack %s complete' % operation ) output = 'Stack %s complete' % operation)
break break
if '%s_ROLLBACK_COMPLETE' % operation == stack.stack_status: if '%s_ROLLBACK_COMPLETE' % operation == stack.stack_status:
result = dict(changed=True, result = dict(changed=True,
events = map(str, list(stack.describe_events())), events = map(str, list(stack.describe_events())),
output = 'Problem with %s. Rollback complete' % operation ) output = 'Problem with %s. Rollback complete' % operation)
break break
elif '%s_FAILED' % operation == stack.stack_status: elif '%s_FAILED' % operation == stack.stack_status:
result = dict(changed=False, result = dict(changed=False,
events = map(str, list(stack.describe_events())), events = map(str, list(stack.describe_events())),
output = 'Stack %s failed' % operation ) output = 'Stack %s failed' % operation)
break break
else: else:
time.sleep(5) time.sleep(5)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment