diff options
author | tedder <ted@timmons.me> | 2016-11-10 08:17:17 -0800 |
---|---|---|
committer | tedder <ted@timmons.me> | 2016-11-10 08:17:17 -0800 |
commit | e9c6e885fd828f2b6e991d8ccb5a73eed7e0d873 (patch) | |
tree | 9222ea796e103a90ba98b909270ee17e6281b7c4 | |
parent | 4f83b809dcc51c554f55a06e2930fd76377c6bda (diff) | |
download | ansible-modules-core-e9c6e885fd828f2b6e991d8ccb5a73eed7e0d873.tar.gz |
add .format indexes for 2.6 compatability
Fixes #5551; the "".format() style needs to have `{0}` instead of the implied `{}` version for compatability with 2.6.
-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 0d02ad70..ee4481eb 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 {} {} {}'.format(e['ResourceType'], e['LogicalResourceId'], e['ResourceStatus']) + eventline = 'StackEvent {0} {1} {2}'.format(e['ResourceType'], e['LogicalResourceId'], e['ResourceStatus']) ret['events'].append(eventline) if e['ResourceStatus'].endswith('FAILED'): - failline = '{} {} {}: {}'.format(e['ResourceType'], e['LogicalResourceId'], e['ResourceStatus'], e['ResourceStatusReason']) + failline = '{0} {1} {2}: {3}'.format(e['ResourceType'], e['LogicalResourceId'], e['ResourceStatus'], e['ResourceStatusReason']) ret['log'].append(failline) return ret |