mirror of
https://github.com/xcat2/confluent.git
synced 2026-01-11 18:42:29 +00:00
Clean up a relatively common potential error in XC scan
Do not clutter logs with this condition.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user