2
0
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:
Jarrod Johnson
2022-12-01 10:20:39 -05:00
parent fc9d92da73
commit d669fb33db

View File

@@ -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,