diff options
author | tedder <ted@timmons.me> | 2016-11-18 14:46:10 -0800 |
---|---|---|
committer | tedder <ted@timmons.me> | 2016-11-18 14:46:10 -0800 |
commit | ef2f130591ec7217a93933c527f50b52b68af109 (patch) | |
tree | 3de91a0ea388890cb3340ad2ea408aa2c8e93a54 | |
parent | e9c6e885fd828f2b6e991d8ccb5a73eed7e0d873 (diff) | |
download | ansible-modules-core-ef2f130591ec7217a93933c527f50b52b68af109.tar.gz |
update formatted lines to use named identifiers
-rw-r--r-- | cloud/amazon/cloudformation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloud/amazon/cloudformation.py b/cloud/amazon/cloudformation.py index ee4481eb..724bf391 100644 --- a/cloud/amazon/cloudformation.py +++ b/cloud/amazon/cloudformation.py @@ -257,11 +257,11 @@ def get_stack_events(cfn, stack_name): return ret for e in events.get('StackEvents', []): - eventline = 'StackEvent {0} {1} {2}'.format(e['ResourceType'], e['LogicalResourceId'], e['ResourceStatus']) + eventline = 'StackEvent {ResourceType} {LogicalResourceId} {ResourceStatus}'.format(**e) ret['events'].append(eventline) if e['ResourceStatus'].endswith('FAILED'): - failline = '{0} {1} {2}: {3}'.format(e['ResourceType'], e['LogicalResourceId'], e['ResourceStatus'], e['ResourceStatusReason']) + failline = '{ResourceType} {LogicalResourceId} {ResourceStatus}: {ResourceStatusReason}'.format(**e) ret['log'].append(failline) return ret |