From 67e7d84abd2b941f48fcc2ec9e2d342d55da0a68 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 24 Mar 2014 14:08:52 -0400 Subject: [PATCH] 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 --- pyghmi/ipmi/command.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index ef8d3f55..cb6eb43f 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -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