From e7bdb5ee7d8c18234c09ec5706411a3809e2b897 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 3 Jan 2017 16:00:27 -0500 Subject: [PATCH] Defer TLS key handler registration Wait until the object is logged in before trying to set the key handler. It carries some prerequisite on talking to the BMC, so it is better handled in the logged handler. --- confluent_server/confluent/plugins/hardwaremanagement/ipmi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index 0f7106de..b4205ccc 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -346,7 +346,6 @@ class IpmiHandler(object): raise exc.TargetEndpointUnreachable(ge[1]) raise self.ipmicmd = persistent_ipmicmds[(node, tenant)] - self.ipmicmd.setup_confluent_keyhandler() bootdevices = { 'optical': 'cd' @@ -358,6 +357,7 @@ class IpmiHandler(object): self.error = response['error'] else: self.loggedin = True + self.ipmicmd.setup_confluent_keyhandler() self._logevt.set() def handle_request(self):