From a7db8615aa37b1c99adfacaa047d903d2fe60db0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 25 Oct 2018 16:29:11 -0400 Subject: [PATCH] Fix storage deletion When multiple controllers are present, it is required to specify the controller number. Change-Id: Iab8e7a44c1bcdb65c682c2cd9b9629206300ecd1 --- 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 faa48e24..c8bf460d 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -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: