From c5f75bfa15aca309ef466a06b523ed05d787e906 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 5 Sep 2019 11:10:38 -0400 Subject: [PATCH] Fix slowdown when no password change needed If the password was pre-provisioned, accelerate the config phase of tsm bringup. --- confluent_server/confluent/discovery/handlers/tsm.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/confluent_server/confluent/discovery/handlers/tsm.py b/confluent_server/confluent/discovery/handlers/tsm.py index 83f6ff41..50747404 100644 --- a/confluent_server/confluent/discovery/handlers/tsm.py +++ b/confluent_server/confluent/discovery/handlers/tsm.py @@ -43,7 +43,7 @@ class NodeHandler(generic.NodeHandler): # but if https_cert gets stricter, this check means something fprint = util.get_fingerprint(self.https_cert) return util.cert_matches(fprint, certificate) - + def _get_wc(self): authdata = { # start by trying factory defaults 'username': self.DEFAULT_USER, @@ -111,8 +111,6 @@ class NodeHandler(generic.NodeHandler): wc = self._get_wc() wc.set_header('X-CSRFTOKEN', self.csrftok) curruserinfo = {} - curruserinfo = wc.grab_json_response('/api/settings/users') - authchg = curruserinfo[1] authupdate = False wc.set_header('Content-Type', 'application/json') if user != self.curruser: