2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 03:37:47 +00:00

Fix storage deletion

When multiple controllers are present, it is required to
specify the controller number.

Change-Id: Iab8e7a44c1bcdb65c682c2cd9b9629206300ecd1
This commit is contained in:
Jarrod Johnson 2018-10-25 16:29:11 -04:00
parent c716dca665
commit a7db8615aa

View File

@ -977,7 +977,7 @@ class XCCClient(IMMClient):
realcfg = self.get_storage_configuration(False)
for pool in cfgspec.arrays:
for volume in pool.volumes:
vid = str(volume.id[1])
vid = '{0},{1}'.format(volume.id[1], volume.id[0])
rsp = self.wc.grab_json_response(
'/api/function', {'raidlink_RemoveVolumeAsync': vid})
if rsp['return'] != 0: