2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-23 01:53:28 +00:00

Tolerate an XCC with downed web service

Make the best of the situation by trying to continue
without the policy applied.
This commit is contained in:
Jarrod Johnson 2019-04-02 09:36:37 -04:00
parent 996b1ba45b
commit 3c21ca8739

View File

@ -77,7 +77,11 @@ class NodeHandler(immhandler.NodeHandler):
ruleset['USER_GlobalMinPassReuseCycle'] = value
ic.register_key_handler(self.validate_cert)
ic.oem_init()
ic._oem.immhandler.wc.grab_json_response('/api/dataset', ruleset)
try:
ic._oem.immhandler.wc.grab_json_response('/api/dataset', ruleset)
except Exception as e:
print(repr(e))
pass
def config(self, nodename, reset=False):
# TODO(jjohnson2): set ip parameters, user/pass, alert cfg maybe