From 9e42b2a684b242483e01dbd61b1c5ce5a4a40e4f Mon Sep 17 00:00:00 2001 From: Constantin07 Date: Wed, 17 Feb 2016 22:09:02 +0000 Subject: [PATCH] Fixing issue #3057 - AttributeError: 'str' object has no attribute 'items' --- cloud/amazon/ec2_tag.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud/amazon/ec2_tag.py b/cloud/amazon/ec2_tag.py index b864329593d..e5aa866cc4d 100644 --- a/cloud/amazon/ec2_tag.py +++ b/cloud/amazon/ec2_tag.py @@ -105,7 +105,6 @@ tasks: - volumes ''' -import sys try: import boto.ec2 @@ -118,7 +117,7 @@ def main(): argument_spec = ec2_argument_spec() argument_spec.update(dict( resource = dict(required=True), - tags = dict(), + tags = dict(type='dict'), state = dict(default='present', choices=['present', 'absent', 'list']), ) ) @@ -180,4 +179,5 @@ def main(): from ansible.module_utils.basic import * from ansible.module_utils.ec2 import * -main() +if __name__ == '__main__': + main()