From 80bf0c9bfa14466e01bd2cbac604c66f44f509f1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 29 Apr 2025 09:53:19 -0400 Subject: [PATCH] Clean up a relatively common potential error in XC scan Do not clutter logs with this condition. --- confluent_server/confluent/discovery/handlers/xcc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/handlers/xcc.py b/confluent_server/confluent/discovery/handlers/xcc.py index a7feaa93..77535ce3 100644 --- a/confluent_server/confluent/discovery/handlers/xcc.py +++ b/confluent_server/confluent/discovery/handlers/xcc.py @@ -92,7 +92,10 @@ class NodeHandler(immhandler.NodeHandler): ip, port = self.get_web_port_and_ip() c = webclient.SecureHTTPConnection(ip, port, verifycallback=self.validate_cert) - i = c.grab_json_response('/api/providers/logoninfo') + try: + i = c.grab_json_response('/api/providers/logoninfo') + except Exception: + return modelname = i.get('items', [{}])[0].get('machine_name', None) if modelname: self.info['modelname'] = modelname