[Libvirt-cim] [PATCH 3 of 4] [TEST]Remove pieces in get_typed_class
yunguol at cn.ibm.com
yunguol at cn.ibm.com
Tue Sep 23 07:01:01 UTC 2008
# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1222153135 25200
# Node ID 98aff030dd48b0a1e08b90f6719d47c630b4d424
# Parent a85126ffa88f5fe6f9c11c1c84909df220963947
[TEST]Remove pieces in get_typed_class
Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>
diff -r a85126ffa88f -r 98aff030dd48 suites/libvirt-cim/lib/XenKvmLib/classes.py
--- a/suites/libvirt-cim/lib/XenKvmLib/classes.py Mon Sep 22 23:56:15 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/classes.py Mon Sep 22 23:58:55 2008 -0700
@@ -22,10 +22,6 @@ virt_types = ['Xen', 'KVM', 'XenFV', 'LX
virt_types = ['Xen', 'KVM', 'XenFV', 'LXC']
def get_typed_class(virt, basename):
- if virt not in virt_types:
- if virt != "Virt" and basename != "MigrationJob":
- raise ValueError('Invalid class type')
-
if basename == None or basename == '':
raise ValueError('Invalide class base name')
More information about the Libvirt-cim
mailing list