From ac9609c40d0d74539d06bfa538be09b0fa310387 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 29 Jan 2020 10:56:31 -0500 Subject: [PATCH] Adjust to pyghmi api change Due to confusion of mixed settings, pyghmi api changes to enable the confluent experience to be more sane. --- .../confluent/plugins/hardwaremanagement/ipmi.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index bbfb78be..2e104e48 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -1417,9 +1417,11 @@ class IpmiHandler(object): def handle_bmcconfig(self, advanced=False, extended=False): if 'read' == self.op: try: - self.output.put(msg.ConfigSet( - self.node, - self.ipmicmd.get_bmc_configuration(extended=extended))) + if extended: + bmccfg = self.ipmicmd.get_extended_bmc_configuration() + else: + bmccfg = self.ipmicmd.get_bmc_configuration() + self.output.put(msg.ConfigSet(self.node, bmccfg)) except Exception as e: self.output.put( msg.ConfluentNodeError(self.node, str(e)))