
30 Jul
2008
30 Jul
'08
10:06 p.m.
+@do_main(sup_types) +def main(): + options = main.options + + rc, systemref = define_test_system(options) + if systemref is None: + return rc + + if not isinstance(systemref, pywbem.CIMInstanceName): + logger.error("ResultingSystem is not a Reference!") + return FAIL +
You'll need to undefine the guest before the return
+ if systemref.namespace is None: + logger.error("Returned reference had no namespace!") + return FAIL
Same here.
+ + logger.info("GetInstance(%s)" % systemref) + system = get_instance_by_ref(options.ip, systemref) + + undefine_test_domain(default_dom, options.ip, virt=options.virt) +
-- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com