From: Ondrej Lichtner olichtne@redhat.com
If the XmlData dictionary contained a None value it would be transformed to a string. This fixes that.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com --- lnst/Controller/XmlProcessing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lnst/Controller/XmlProcessing.py b/lnst/Controller/XmlProcessing.py index 771ead5..40debae 100644 --- a/lnst/Controller/XmlProcessing.py +++ b/lnst/Controller/XmlProcessing.py @@ -140,7 +140,8 @@ class XmlData(dict):
def __getitem__(self, key): value = super(XmlData, self).__getitem__(key) - if type(value) == XmlData or type(value) == XmlCollection: + if type(value) == XmlData or type(value) == XmlCollection\ + or value == None: return value
return str(value)