
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1212719310 25200 # Node ID 6fe68391f0c820e815251022bfe8469a0a93115b # Parent 27d89d4b1ea884a49da6ce4fd93e0f7c71a6b36b 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@us.ibm.com> diff -r 27d89d4b1ea8 -r 6fe68391f0c8 suites/libvirt-cim/lib/XenKvmLib/enumclass.py --- a/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Fri Jul 11 13:26:03 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