2
0
mirror of https://opendev.org/x/pyghmi synced 2026-04-02 00:03:30 +00:00

Fix IMM/XCC over network

The change for KCS inadvertently used wrong variable name blocking
online usage.

Change-Id: I3b629e3697d73f6b36b2dc9d9755797fd348af0f
This commit is contained in:
Jarrod Johnson
2020-02-20 13:02:40 -05:00
parent 04b2d5cd69
commit 3221bb1ed3

View File

@@ -125,7 +125,7 @@ class IMMClient(object):
self.imm = ipmicmd.bmc
self.adp_referer = 'https://{0}/designs/imm/index-console.php'.format(
self.imm)
if self.password:
if ipmicmd.ipmi_session.password:
self.username = ipmicmd.ipmi_session.userid.decode('utf-8')
self.password = ipmicmd.ipmi_session.password.decode('utf-8')
self._wc = None # The webclient shall be initiated on demand