diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index c8bf460d..e5b2fa93 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -1089,7 +1089,7 @@ class XCCClient(IMMClient): '/api/function/raid_alldevices?params=storage_GetAllDevices') standalonedisks = [] pools = [] - for item in rsp['items']: + for item in rsp.get('items', []): for cinfo in item['controllerInfo']: cid = cinfo['id'] for pool in cinfo['pools']: