From 68dea5530a93789c440f94cd10793661afb0db8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Legrand?= Date: Mon, 30 Oct 2023 17:26:06 +0100 Subject: [PATCH] Handling SQL IP address issue (#1825) * Handling SQL IP address issue * reverting one change * Improving this fix based on wiktor's feedback * formatting --- .../network-dashboard/src/plugins/discover-cai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints/cloud-operations/network-dashboard/src/plugins/discover-cai.py b/blueprints/cloud-operations/network-dashboard/src/plugins/discover-cai.py index 246ebfe0d6..5a87d93b4f 100644 --- a/blueprints/cloud-operations/network-dashboard/src/plugins/discover-cai.py +++ b/blueprints/cloud-operations/network-dashboard/src/plugins/discover-cai.py @@ -217,7 +217,7 @@ def _handle_sql_instances(resource, data): 'self_link': _self_link(data['selfLink']), 'ipAddresses': [ i['ipAddress'] - for i in data.get('ipAddresses') + for i in data.get('ipAddresses', []) if i['type'] == 'PRIVATE' ], 'region': data['region'],