mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
update formatted lines to use named identifiers
This commit is contained in:
parent
c22e383836
commit
78f8ef267c
1 changed files with 2 additions and 2 deletions
|
@ -270,11 +270,11 @@ def get_stack_events(cfn, stack_name):
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
for e in events.get('StackEvents', []):
|
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)
|
ret['events'].append(eventline)
|
||||||
|
|
||||||
if e['ResourceStatus'].endswith('FAILED'):
|
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)
|
ret['log'].append(failline)
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue