From 3d1a1d58b8e75fdbc5826c7f2df5aea962c778f4 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Sun, 6 Sep 2015 07:56:58 -0700 Subject: [PATCH] Try to revert the pieces of #651 that @willthames and @erydo requested --- lib/ansible/modules/extras/cloud/amazon/ec2_vpc_igw.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_igw.py b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_igw.py index 71c2519dc4e..e374580433a 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_igw.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_igw.py @@ -120,8 +120,8 @@ def main(): argument_spec = ec2_argument_spec() argument_spec.update( dict( - vpc_id = dict(required=True, default=None), - state = dict(required=False, default='present', choices=['present', 'absent']) + vpc_id = dict(required=True), + state = dict(default='present', choices=['present', 'absent']) ) ) @@ -144,7 +144,7 @@ def main(): module.fail_json(msg="region must be specified") vpc_id = module.params.get('vpc_id') - state = module.params.get('state') + state = module.params.get('state', 'present') try: if state == 'present':