cloudformation_info - fix KeyError (#62290)

* cloudformation_info - fix KeyError

* changelog
pull/62522/head
Sloane Hertel 5 years ago committed by GitHub
parent b87b359df5
commit 66e5427ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
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')):
facts = {'stack_description': stack_description}

Loading…
Cancel
Save