Change boto connection object from ec2 to vpc
Issue 906 - ec2_vpc_igw has incorrect connection parameters
This commit is contained in:
parent
2f2dbaeff7
commit
60bf93d182
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ def main():
|
||||||
|
|
||||||
if region:
|
if region:
|
||||||
try:
|
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:
|
except (boto.exception.NoAuthHandlerFound, StandardError), e:
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=str(e))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue