Change boto connection object from ec2 to vpc

Issue 906 - ec2_vpc_igw has incorrect connection parameters
This commit is contained in:
dbhirko 2015-09-03 16:00:41 -04:00
parent f2c6d9f9a7
commit 041d6f6077

View file

@ -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: