mirror of
https://opendev.org/x/pyghmi
synced 2025-02-06 14:02:38 +00:00
Fix IMM on KCS
IMM on KCS did not even partially work, allow at least partial functionality. Change-Id: Ia42f4f91cdf29505423e05961101e7d7651f55d2
This commit is contained in:
parent
9958b75cc6
commit
c180933281
@ -125,8 +125,9 @@ class IMMClient(object):
|
||||
self.imm = ipmicmd.bmc
|
||||
self.adp_referer = 'https://{0}/designs/imm/index-console.php'.format(
|
||||
self.imm)
|
||||
self.username = ipmicmd.ipmi_session.userid.decode('utf-8')
|
||||
self.password = ipmicmd.ipmi_session.password.decode('utf-8')
|
||||
if self.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
|
||||
self._energymanager = None
|
||||
self.datacache = {}
|
||||
|
@ -15,6 +15,7 @@
|
||||
import ctypes
|
||||
import fcntl
|
||||
from select import select
|
||||
import time
|
||||
|
||||
import pyghmi.ipmi.private.util as iutil
|
||||
|
||||
@ -90,6 +91,9 @@ class Session(object):
|
||||
while not rd:
|
||||
rd, _, _ = select((self.ipmidev,), (), (), 1)
|
||||
|
||||
def pause(self, seconds):
|
||||
time.sleep(seconds)
|
||||
|
||||
@property
|
||||
def parsed_rsp(self):
|
||||
response = {'netfn': self.rsp.msg.netfn, 'command': self.rsp.msg.cmd,
|
||||
|
Loading…
x
Reference in New Issue
Block a user