pyghmi 1.5.76__py3-none-any.whl → 1.5.77__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -351,6 +351,7 @@ class LenovoFirmwareConfig(object):
351
351
  readonly = 'true'
352
352
  possible = []
353
353
  current = None
354
+ currentidxes = []
354
355
  default = None
355
356
  reset = False
356
357
  name = setting.find("mriName").text
@@ -381,6 +382,7 @@ class LenovoFirmwareConfig(object):
381
382
  instbynum[xid] = x
382
383
  defidx += 1
383
384
  current = [instbynum[idx].text for idx in sorted(instbynum)]
385
+ currentidxes = list(sorted(instbynum))
384
386
  default = onedata.get('default', None)
385
387
  if default == '':
386
388
  default = None
@@ -442,6 +444,8 @@ class LenovoFirmwareConfig(object):
442
444
  if current and len(current) > 1:
443
445
  instidx = 1
444
446
  for inst in current:
447
+ if currentidxes:
448
+ instidx = currentidxes.pop(0)
445
449
  optname = '{0}.{1}'.format(optionname, instidx)
446
450
  options[optname] = dict(
447
451
  current=inst,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyghmi
3
- Version: 1.5.76
3
+ Version: 1.5.77
4
4
  Summary: Python General Hardware Management Initiative (IPMI and others)
5
5
  Home-page: http://github.com/openstack/pyghmi/
6
6
  Author: Jarrod Johnson
@@ -20,7 +20,7 @@ pyghmi/ipmi/oem/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  pyghmi/ipmi/oem/generic.py,sha256=-5mIxczwkvOdRy2NSPbSgPerQ5AMez-KhC8AkOrwkL0,18614
21
21
  pyghmi/ipmi/oem/lookup.py,sha256=Ex00OEEolsdWCVhyP0QDGzOxHGEA7sKI8a8fW4kJPD8,3653
22
22
  pyghmi/ipmi/oem/lenovo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- pyghmi/ipmi/oem/lenovo/config.py,sha256=jSA8_NACwzouLpAhsu591QQFaBYPEU7NHvhpEddLQpg,26105
23
+ pyghmi/ipmi/oem/lenovo/config.py,sha256=gxFl5Z-RSDyEvbmcQ_RI2xbaW7gdSWm_ysJeXxV0P_0,26325
24
24
  pyghmi/ipmi/oem/lenovo/cpu.py,sha256=POZMP9n2S1v6r8iNStkCOVEiQYs3ut3RqL_9x-kgOFw,1651
25
25
  pyghmi/ipmi/oem/lenovo/dimm.py,sha256=L8k1aBgtvxqyubDBNKdDkz80pDE8Sck1eMLcMz1GhFI,1875
26
26
  pyghmi/ipmi/oem/lenovo/drive.py,sha256=MmVgaosEwJXcwi1kKYGnY-dbrx4Zp55941qWMvprUMA,2055
@@ -64,11 +64,11 @@ pyghmi/tests/unit/ipmi/test_sdr.py,sha256=vb3iLY0cnHJ2K_m4xgYUjEcbPd_ZYhYx-uBowB
64
64
  pyghmi/util/__init__.py,sha256=GZLBWJiun2Plb_VE9dDSh4_PQMCha3gA7QLUqx3oSYI,25
65
65
  pyghmi/util/parse.py,sha256=6VlyBCEcE8gy8PJWmEDdtCyWATaKwPaTswCdioPCWOE,2120
66
66
  pyghmi/util/webclient.py,sha256=782_yMuy_LuN9E2vh2EJ-R64X_EyvLLRuurE__jfn20,15371
67
- pyghmi-1.5.76.dist-info/AUTHORS,sha256=-0iHKtdQwAJfAGKcruCnvcQXrXuE_LgBZ3P15DJI1xY,2044
68
- pyghmi-1.5.76.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
69
- pyghmi-1.5.76.dist-info/METADATA,sha256=1__ebGoQR_mgCzeiVv6VwBIcV9zh-ealhXSjKe_VseE,1137
70
- pyghmi-1.5.76.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
71
- pyghmi-1.5.76.dist-info/entry_points.txt,sha256=-OpJliDzATxmuPXK0VR3Ma-Yk_i4ZhfIIB-12A26dSI,168
72
- pyghmi-1.5.76.dist-info/pbr.json,sha256=7P9y3sOyYyYsFR7KO_P8o4k1UQpTfZtkxoIp2PRUYv8,46
73
- pyghmi-1.5.76.dist-info/top_level.txt,sha256=aDtt6S9eVu6-tNdaUs4Pz9PbdUd69bziZZMhNvk9Ulc,7
74
- pyghmi-1.5.76.dist-info/RECORD,,
67
+ pyghmi-1.5.77.dist-info/AUTHORS,sha256=-0iHKtdQwAJfAGKcruCnvcQXrXuE_LgBZ3P15DJI1xY,2044
68
+ pyghmi-1.5.77.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
69
+ pyghmi-1.5.77.dist-info/METADATA,sha256=vGNVD3HFcrVNpj1IgdCPFTsS165Zmw0JLCSxagRV1ag,1137
70
+ pyghmi-1.5.77.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
71
+ pyghmi-1.5.77.dist-info/entry_points.txt,sha256=-OpJliDzATxmuPXK0VR3Ma-Yk_i4ZhfIIB-12A26dSI,168
72
+ pyghmi-1.5.77.dist-info/pbr.json,sha256=bMLCDGwW8QTeMX-sRWFYm0VDMdoXgjoox4GwcdTx5hA,46
73
+ pyghmi-1.5.77.dist-info/top_level.txt,sha256=aDtt6S9eVu6-tNdaUs4Pz9PbdUd69bziZZMhNvk9Ulc,7
74
+ pyghmi-1.5.77.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ {"git_version": "4bbf63c", "is_release": true}
@@ -1 +0,0 @@
1
- {"git_version": "345fd8b", "is_release": true}