cloudformation_info - fix KeyError (#62290)
* cloudformation_info - fix KeyError * changelog
This commit is contained in:
parent
b87b359df5
commit
66e5427ffb
2 changed files with 6 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- cloudformation_info - Fix a KeyError returning information about the stack(s).
|
|
@ -295,7 +295,10 @@ def main():
|
||||||
|
|
||||||
service_mgr = CloudFormationServiceManager(module)
|
service_mgr = CloudFormationServiceManager(module)
|
||||||
|
|
||||||
result = {'ansible_facts': {'cloudformation': {}}}
|
if is_old_facts:
|
||||||
|
result = {'ansible_facts': {'cloudformation': {}}}
|
||||||
|
else:
|
||||||
|
result = {'cloudformation': {}}
|
||||||
|
|
||||||
for stack_description in service_mgr.describe_stacks(module.params.get('stack_name')):
|
for stack_description in service_mgr.describe_stacks(module.params.get('stack_name')):
|
||||||
facts = {'stack_description': stack_description}
|
facts = {'stack_description': stack_description}
|
||||||
|
|
Loading…
Reference in a new issue