From 1be749343b57c1ccf33664d67549fcd63004e486 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 10 Mar 2020 13:53:02 -0400 Subject: [PATCH] Fix setting instanced config on XCC XCC has some numeric data that must be forced to str for XML. Change-Id: I86fed505d80d53b3ce3b4db33af678d548da847f --- pyghmi/ipmi/oem/lenovo/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyghmi/ipmi/oem/lenovo/config.py b/pyghmi/ipmi/oem/lenovo/config.py index 79b84ebb..587be5e3 100644 --- a/pyghmi/ipmi/oem/lenovo/config.py +++ b/pyghmi/ipmi/oem/lenovo/config.py @@ -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: