From 38c5a0067e4e7879bd692c054e7816017d52eb61 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 25 May 2016 11:48:16 -0700 Subject: [PATCH] Fix python3 syntax compilation --- lib/ansible/modules/extras/cloud/amazon/ec2_vpc_peer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_peer.py b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_peer.py index 4ea313c67ea..3eb6582d0f7 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_peer.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_peer.py @@ -343,8 +343,8 @@ def main(): state = module.params.get('state').lower() try: region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module, boto3=True) - client = boto3_conn(module, conn_type='client', resource='ec2', region=region, endpoint=ec2_url, **aws_connect_kwargs) - except botocore.exceptions.NoCredentialsError, e: + client = boto3_conn(module, conn_type='client', resource='ec2', region=region, endpoint=ec2_url, **aws_connect_kwargs) + except botocore.exceptions.NoCredentialsError as e: module.fail_json(msg="Can't authorize connection - "+str(e)) if state == 'present':