Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit 7d4b2feede96eaa87348deba5e4265997dd537dc Author: Peter Hatina phatina@redhat.com Date: Wed Jun 19 10:58:40 2013 +0200
fix qualifier formating in _LmiXmlFormatter
cli-tools/lmi/lmi_client_shell.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py index 1f81ec8..ffb1168 100644 --- a/cli-tools/lmi/lmi_client_shell.py +++ b/cli-tools/lmi/lmi_client_shell.py @@ -227,7 +227,8 @@ class _LmiXmlFormatter(_LmiFormatter): if values and isinstance(values[0], pywbem.cim_xml.VALUE_ARRAY): val += ": { " + ", ".join(["'" + v.firstChild.nodeValue + "'" for v in values[0].childNodes]) + " }\n" else: - val += ": '%s'\n" % values[0].firstChild.nodeValue + if values: + val += ": '%s'\n" % values[0].firstChild.nodeValue _LmiTextFormatter(val).format(indent, sub_indent + 4, width, f, separator = True)
def __format_class_property(self, node, indent = 0, sub_indent = 0, width = 80, f = sys.stdout):
cura-tools-devel@lists.fedorahosted.org