From 8fff5ac9ce0c3729c88c45ba6770183dee9c3fb2 Mon Sep 17 00:00:00 2001 From: steynovich Date: Wed, 9 Sep 2015 23:43:15 +0200 Subject: [PATCH] Update route53_zone.py Proposed fix for issue #940 Fix: Include common AWS parameters in module arguments --- lib/ansible/modules/extras/cloud/amazon/route53_zone.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/route53_zone.py b/lib/ansible/modules/extras/cloud/amazon/route53_zone.py index 4630e00d4fa..b40a033b024 100644 --- a/lib/ansible/modules/extras/cloud/amazon/route53_zone.py +++ b/lib/ansible/modules/extras/cloud/amazon/route53_zone.py @@ -64,15 +64,14 @@ except ImportError: def main(): - module = AnsibleModule( - argument_spec=dict( + argument_spec = ec2_argument_spec() + argument_spec.update(dict( zone=dict(required=True), state=dict(default='present', choices=['present', 'absent']), vpc_id=dict(default=None), vpc_region=dict(default=None), - comment=dict(default=''), - ) - ) + comment=dict(default=''))) + module = AnsibleModule(argument_spec=argument_spec) if not HAS_BOTO: module.fail_json(msg='boto required for this module')