From 60bf93d182f328ba7351317007f4687e37c378fa Mon Sep 17 00:00:00 2001 From: dbhirko Date: Thu, 3 Sep 2015 16:00:41 -0400 Subject: [PATCH] Change boto connection object from ec2 to vpc Issue 906 - ec2_vpc_igw has incorrect connection parameters --- lib/ansible/modules/extras/cloud/amazon/ec2_vpc_igw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 63be48248ef..5218bff5e6e 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_igw.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_igw.py @@ -133,7 +133,7 @@ def main(): if region: try: - connection = connect_to_aws(boto.ec2, region, **aws_connect_params) + connection = connect_to_aws(boto.vpc, region, **aws_connect_params) except (boto.exception.NoAuthHandlerFound, StandardError), e: module.fail_json(msg=str(e)) else: