mirror of
https://opendev.org/x/pyghmi
synced 2025-07-23 12:41:12 +00:00
Fix expectation of return on bmc reset
Change-Id: I59f0b2dff2792ea704ebd7457f1874e050dfc618
This commit is contained in:
@@ -408,7 +408,7 @@ class Command(object):
|
||||
def reset_bmc(self):
|
||||
"""Do a cold reset in BMC"""
|
||||
response = self.raw_command(netfn=6, command=2, retry=False)
|
||||
if 'error' in response:
|
||||
if response and 'error' in response:
|
||||
raise exc.IpmiException(response['error'])
|
||||
|
||||
def set_bootdev(self,
|
||||
|
Reference in New Issue
Block a user