mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove unneeded nesting
The double nesting causes an issue with setting a default empty list if you need to loop over this using with_items. This fixes the issue since it looks like ansible silently fails at setting the default if you use with_items: registered_var['one']['two'] where one is not set.
This commit is contained in:
parent
509188bfd9
commit
9b19de89c7
1 changed files with 1 additions and 2 deletions
|
@ -146,8 +146,7 @@ def main():
|
||||||
except:
|
except:
|
||||||
print module.jsonify('error getting instances from: ' + region.name)
|
print module.jsonify('error getting instances from: ' + region.name)
|
||||||
|
|
||||||
ansible_facts = {'info': server_info}
|
ec2_facts_result = dict(changed=True, ec2=server_info)
|
||||||
ec2_facts_result = dict(changed=True, ec2=ansible_facts)
|
|
||||||
|
|
||||||
module.exit_json(**ec2_facts_result)
|
module.exit_json(**ec2_facts_result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue