2
0
mirror of https://opendev.org/x/pyghmi synced 2026-04-01 15:53:32 +00:00

Fix setting instanced config on XCC

XCC has some numeric data
that must be forced to str for
XML.

Change-Id: I86fed505d80d53b3ce3b4db33af678d548da847f
This commit is contained in:
Jarrod Johnson
2020-03-10 13:53:02 -04:00
parent 32f2e2827f
commit 1be749343b

View File

@@ -521,11 +521,11 @@ class LenovoFirmwareConfig(object):
if is_list:
count += 1
instance = etree.Element(
'instance', ID=options[option]['lenovo_instance'],
'instance', ID=str(options[option]['lenovo_instance']),
order=str(count))
else:
instance = etree.Element(
'instance', ID=options[option]['lenovo_instance'])
'instance', ID=str(options[option]['lenovo_instance']))
choice.append(instance)
if not changes: