# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1212719310 25200
# Node ID 7ea2f4ed91cd8b69bc0b8c34304cf3ef870a1b05
# Parent 8f450e62922d9b07896c2c505ae0b565a4097c9c
Fix getInstance in enumclass.py to return matching type on error.
getInstance() returns a single element, so if the call encounters an error, it should
return None instead of [].
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 8f450e62922d -r 7ea2f4ed91cd suites/libvirt-cim/lib/XenKvmLib/enumclass.py
--- a/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Mon Jul 14 09:09:29 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Thu Jun 05 19:28:30 2008 -0700
@@ -320,6 +320,6 @@
except pywbem.CIMError, arg:
print arg[1]
- return []
+ return None
return inst