2
0
mirror of https://opendev.org/x/pyghmi synced 2025-02-20 12:30:48 +00:00

Fix missing delay_xmit argument breaking power wait requests

The 'command' variant of raw_command did not recognize the delay_xmit
parameter.  When code was changed to go through self instead of through
session, this facet was missed.  Fix the problem by adding hook to
pass through that information.

Change-Id: I6c5a13940e753c4300b18500bad60f216e08ad43
This commit is contained in:
Jarrod Johnson 2014-03-24 14:08:52 -04:00
parent 44370a9a0b
commit 67e7d84abd

View File

@ -260,7 +260,8 @@ class Command(object):
return response
return {'bootdev': bootdev}
def raw_command(self, netfn, command, bridge_request={}, data=()):
def raw_command(self, netfn, command, bridge_request={}, data=(),
delay_xmit=None):
"""Send raw ipmi command to BMC
This allows arbitrary IPMI bytes to be issued. This is commonly used
@ -277,7 +278,7 @@ class Command(object):
"""
return self.ipmi_session.raw_command(netfn=netfn, command=command,
bridge_request=bridge_request,
data=data)
data=data, delay_xmit=delay_xmit)
def get_power(self):
"""Get current power state of the managed system