2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-29 13:00:03 +00:00

Adjust to pyghmi api change

Due to confusion of mixed settings, pyghmi api changes
to enable the confluent experience to be more
sane.
This commit is contained in:
Jarrod Johnson 2020-01-29 10:56:31 -05:00
parent 0c4cb49c20
commit ac9609c40d

View File

@ -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)))