diff --git a/pyghmi/ipmi/oem/lenovo/config.py b/pyghmi/ipmi/oem/lenovo/config.py index 4f7d9c47..a8747562 100644 --- a/pyghmi/ipmi/oem/lenovo/config.py +++ b/pyghmi/ipmi/oem/lenovo/config.py @@ -372,7 +372,13 @@ class LenovoFirmwareConfig(object): if not instances: protect = True # not supported yet else: - current = [x.text for x in instances] + instbynum = {} + defidx = 1 + for x in instances: + xid = int(x.get('ID', defidx)) + instbynum[xid] = x + defidx += 1 + current = [instbynum[idx].text for idx in sorted(instbynum)] default = onedata.get('default', None) if default == '': default = None