From bf8d695ec3a401d0c8bec188103ddcbc399eff49 Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Tue, 19 Dec 2017 16:42:26 -0500 Subject: [PATCH] [ec2_vpc_peer] Remove use of DryRun since the module doesn't support check mode (#34062) --- lib/ansible/modules/cloud/amazon/ec2_vpc_peer.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc_peer.py b/lib/ansible/modules/cloud/amazon/ec2_vpc_peer.py index a42d102a67..0f6bdbf562 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_vpc_peer.py +++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_peer.py @@ -281,7 +281,6 @@ def create_peer_connection(client, module): params['PeerRegion'] = module.params.get('peer_region') if module.params.get('peer_owner_id'): params['PeerOwnerId'] = str(module.params.get('peer_owner_id')) - params['DryRun'] = module.check_mode peering_conns = describe_peering_connections(params, client) for peering_conn in peering_conns['VpcPeeringConnections']: pcx_id = peering_conn['VpcPeeringConnectionId'] @@ -311,7 +310,6 @@ def remove_peer_connection(client, module): params['PeerRegion'] = module.params.get('peer_region') if module.params.get('peer_owner_id'): params['PeerOwnerId'] = str(module.params.get('peer_owner_id')) - params['DryRun'] = module.check_mode peering_conns = describe_peering_connections(params, client) if not peering_conns: module.exit_json(changed=False) @@ -338,7 +336,6 @@ def accept_reject(state, client, module): changed = False params = dict() params['VpcPeeringConnectionId'] = module.params.get('peering_id') - params['DryRun'] = module.check_mode if peer_status(client, module) != 'active': try: if state == 'accept':