From e161caeb2ec1ac4a030f9f3d0d496f09a40a0ca6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 9 Feb 2022 09:34:10 -0500 Subject: [PATCH] Have XCC raid configuration proceed with new state A server may now be in state 3, which allows raid configuration in addition to state 2. Change-Id: I5218b9c43391c2c094973d238db526b9fecb8e9e --- pyghmi/ipmi/oem/lenovo/imm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 9b4f09d3..95da5b89 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -1099,7 +1099,7 @@ class XCCClient(IMMClient): def check_storage_configuration(self, cfgspec=None): rsp = self.wc.grab_json_response( '/api/function/raid_conf?params=raidlink_GetStatus') - if rsp['items'][0]['status'] != 2: + if rsp['items'][0]['status'] not in (2, 3): raise pygexc.TemporaryError('Storage configuration unavailable in ' 'current state (try boot to setup or ' 'an OS)')