Fix EC2_TAG module output structure when listing tags

This commit is contained in:
Andrea Mandolo 2014-07-15 14:26:53 +02:00
parent 1cc9b6d90b
commit 09006cc374

View file

@ -142,7 +142,7 @@ def main():
module.exit_json(msg="Tags %s removed for resource %s." % (dictremove,resource), changed=True) module.exit_json(msg="Tags %s removed for resource %s." % (dictremove,resource), changed=True)
if state == 'list': if state == 'list':
module.exit_json(changed=False, **tagdict) module.exit_json(changed=False, tags=tagdict)
sys.exit(0) sys.exit(0)
# import module snippets # import module snippets