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:
@@ -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', []):
|
||||
|
||||
@@ -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', []):
|
||||
|
||||
Reference in New Issue
Block a user