From bdfb67ae28943de65b42531f5bc3f03a4b857b12 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 --- cloud/amazon/route53_zone.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cloud/amazon/route53_zone.py b/cloud/amazon/route53_zone.py index 4630e00d4fa..b40a033b024 100644 --- a/cloud/amazon/route53_zone.py +++ b/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')