From 1b170a145e37c42d70d2d8b087def8164ac8bd97 Mon Sep 17 00:00:00 2001 From: Mike Mochan Date: Sat, 9 Jan 2016 20:26:33 +1000 Subject: [PATCH] All calls to describe_vpc_peering_connections need to use the params dict --- 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 8d9c44f6e7..6dc19c8b08 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_peer.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_peer.py @@ -168,8 +168,8 @@ def describe_peering_connections(params, client): ]) if result['VpcPeeringConnections'] == []: result = client.describe_vpc_peering_connections(Filters=[ - {'Name': 'requester-vpc-info.vpc-id', 'Values': [peer_vpc_id]}, - {'Name': 'accepter-vpc-info.vpc-id', 'Values': [vpc_id]} + {'Name': 'requester-vpc-info.vpc-id', 'Values': [params['PeerVpcId']]}, + {'Name': 'accepter-vpc-info.vpc-id', 'Values': [params['VpcId']]} ]) return result