From 7825df06ec15c4af4fca4c10c5d4fb232f4aabae Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Wed, 18 Dec 2024 12:23:37 -0600 Subject: [PATCH] requests msg --- .../neutron_understack/l3_service_cisco_asa.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python/neutron-understack/neutron_understack/l3_service_cisco_asa.py b/python/neutron-understack/neutron_understack/l3_service_cisco_asa.py index 6852d084..378dbeef 100644 --- a/python/neutron-understack/neutron_understack/l3_service_cisco_asa.py +++ b/python/neutron-understack/neutron_understack/l3_service_cisco_asa.py @@ -144,5 +144,11 @@ def _process_floatingip_update(self, resource, event, trigger, payload): headers = {"User-Agent": conf.user_agent} with get_legacy_session() as s: - r = s.get(url, auth=auth, headers=headers, timeout=30, verify=False) - LOG.debug("ASA response: %s", r.text) + try: + r = s.get(url, auth=auth, headers=headers, timeout=30, verify=False) + except Exception: + LOG.exception( + "Unable to make change on ASA device for router %s", + fip["router_id"], + ) + LOG.debug("ASA response: (%s) %s", r.response_code, r.text)