From 041d6f6077ac61af3808c52d28375af7e8778852 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 --- cloud/amazon/ec2_vpc_igw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/amazon/ec2_vpc_igw.py b/cloud/amazon/ec2_vpc_igw.py index 63be48248ef..5218bff5e6e 100644 --- a/cloud/amazon/ec2_vpc_igw.py +++ b/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: