2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-29 00:31:09 +00:00

Do not encounter fatal issue when https is not running

This commit is contained in:
Jarrod Johnson
2017-02-28 15:15:19 -05:00
parent de41a665b2
commit 54583c604f
2 changed files with 4 additions and 2 deletions
@@ -82,7 +82,6 @@ class NodeHandler(generic.NodeHandler):
else:
raise exc.TargetEndpointUnreachable(
'hardwaremanagement.manager must be set to desired address')
print(repr(cd))
newuser = cd['secret.hardwaremanagementuser']['value']
newpass = cd['secret.hardwaremanagementpassword']['value']
for uid in currusers:
@@ -57,5 +57,8 @@ class NodeHandler(object):
else:
ip = self.ipaddr
wc = webclient.SecureHTTPConnection(ip, verifycallback=self._savecert)
wc.connect()
try:
wc.connect()
except Exception:
return None
return self._fp