2
0
mirror of https://opendev.org/x/pyghmi synced 2025-11-12 09:00:39 +00:00

Support newer storage api

Newer XCC firmware changes
the storage API, support the newer api.

Change-Id: I6740fab59098ae825be5f23c5eb28cbf2e85968f
This commit is contained in:
Jarrod Johnson
2020-06-22 14:05:43 -04:00
parent 3150bb8930
commit 3c1c6edf39
2 changed files with 8 additions and 2 deletions

View File

@@ -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', []):

View File

@@ -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', []):