diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index be2bc99f..b97850be 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -1372,7 +1372,10 @@ class XCCClient(IMMClient): def get_storage_configuration(self, logout=True): rsp = self.wc.grab_json_response( - '/api/function/raid_alldevices?params=storage_GetAllDevices') + '/api/function/raid_alldevices?params=storage_GetAllDevices,0') + if not rsp: + rsp = self.wc.grab_json_response( + '/api/function/raid_alldevices?params=storage_GetAllDevices') standalonedisks = [] pools = [] for item in rsp.get('items', []): diff --git a/pyghmi/redfish/oem/lenovo/xcc.py b/pyghmi/redfish/oem/lenovo/xcc.py index cd0c57d9..8b170c3b 100644 --- a/pyghmi/redfish/oem/lenovo/xcc.py +++ b/pyghmi/redfish/oem/lenovo/xcc.py @@ -135,7 +135,10 @@ class OEMHandler(generic.OEMHandler): def get_storage_configuration(self, logout=True): rsp = self.wc.grab_json_response( - '/api/function/raid_alldevices?params=storage_GetAllDevices') + '/api/function/raid_alldevices?params=storage_GetAllDevices,0') + if not rsp: + rsp = self.wc.grab_json_response( + '/api/function/raid_alldevices?params=storage_GetAllDevices') standalonedisks = [] pools = [] for item in rsp.get('items', []):