From 983472ead3b8fd9a0ca750e474eec50c46aaff44 Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Wed, 9 Oct 2024 14:25:40 -0500 Subject: [PATCH] avoid errors when updating VRF BGP settings on a virtual circuit --- plugins/module_utils/metal/metal_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/module_utils/metal/metal_api.py b/plugins/module_utils/metal/metal_api.py index 923837a..615dbcf 100644 --- a/plugins/module_utils/metal/metal_api.py +++ b/plugins/module_utils/metal/metal_api.py @@ -347,10 +347,10 @@ def private_ipv4_subnet_size(resource: dict): METAL_VIRTUAL_CIRCUIT_RESPONSE_ATTRIBUTE_MAP = { 'id': 'id', 'name': 'name', - 'customer_ip': 'customer_ip', - 'metal_ip': 'metal_ip', + 'customer_ip': optional('customer_ip'), + 'metal_ip': optional('metal_ip'), 'nni_vlan': 'nni_vlan', - 'peer_asn': 'peer_asn', + 'peer_asn': optional('peer_asn'), 'port': 'port', 'project': 'project', 'status': 'status',