From 93b2e441a559f73e8ecca1e6435f5773e597fd95 Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 16 Oct 2020 14:46:59 -0700 Subject: [PATCH] Change exactly one of in VPN tunnel to conflicts with (#4120) (#311) * Revert addition of exactly one of that is a breaking change * Switch to conflicts with * Don't reference self Signed-off-by: Modular Magician --- plugins/modules/gcp_compute_vpn_tunnel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/modules/gcp_compute_vpn_tunnel.py b/plugins/modules/gcp_compute_vpn_tunnel.py index 1308555..a49f6e3 100644 --- a/plugins/modules/gcp_compute_vpn_tunnel.py +++ b/plugins/modules/gcp_compute_vpn_tunnel.py @@ -414,7 +414,8 @@ def main(): local_traffic_selector=dict(type='list', elements='str'), remote_traffic_selector=dict(type='list', elements='str'), region=dict(required=True, type='str'), - ) + ), + mutually_exclusive=[['peer_external_gateway', 'peer_gcp_gateway']], ) if not module.params['scopes']: