From d669fb33dbe5df1a960e5bf69c16765baa3a47e0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 1 Dec 2022 10:20:39 -0500 Subject: [PATCH] Fix expectation of return on bmc reset Change-Id: I59f0b2dff2792ea704ebd7457f1874e050dfc618 --- pyghmi/ipmi/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index 55029b9d..2a734dd9 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -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,