summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-rw-r--r--src/python/lmi/test/base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python/lmi/test/base.py b/src/python/lmi/test/base.py
index 1522979..a4640f3 100644
--- a/src/python/lmi/test/base.py
+++ b/src/python/lmi/test/base.py
@@ -41,6 +41,8 @@ def render_iname(iname, indent=2):
:returns: *iname* nicely rendered.
:rtype: string
"""
+ if not isinstance(iname, pywbem.CIMInstanceName):
+ return repr(iname)
lines = [ "%s" % iname.classname
, " "*indent + "namespace: %s" % iname.namespace
, " "*indent + "keys:"]