# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1229978073 28800
# Node ID 3c36bba0147a505e769e9bb330e661859a723b82
# Parent d105e486f092f065749f77f44c7f522eae8f7aab
[TEST] Remove try_getinstance()
try_getinstance() is no longer needed
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r d105e486f092 -r 3c36bba0147a suites/libvirt-cim/lib/XenKvmLib/common_util.py
--- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Mon Dec 22 12:34:31 2008 -0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Mon Dec 22 12:34:33 2008 -0800
@@ -239,20 +239,6 @@
" '%s' passed.", assoc_classname, field_name)
return XFAIL_RC(bug_no)
-def try_getinstance(conn, classname, keys, field_name, expr_values, bug_no):
- inst = None
- try:
- instanceref = CIMInstanceName(classname, keybindings=keys)
- logger.info ("Instanceref is '%s'", instanceref)
- inst = conn.GetInstance(instanceref)
- except pywbem.CIMError, (err_no, err_desc):
- exp_rc = expr_values['rc']
- exp_desc = expr_values['desc']
- return verify_err_desc(exp_rc, exp_desc, err_no, err_desc)
- logger.error("'%s' GetInstance failed to generate an exception and"
- " '%s' passed.", classname, field_name)
- return XFAIL_RC(bug_no)
-
def profile_init_list():
sys_prof_info = {
"InstanceID" :
"CIM:DSP1042-SystemVirtualization-1.0.0",