[Libvirt-cim] [PATCH 1 of 3] [TEST] modified enmuclass lib support virt argument
Dan Smith
danms at us.ibm.com
Fri Mar 28 14:39:01 UTC 2008
GY> # HG changeset patch
GY> # User Guolian Yun <yunguol at cn.ibm.com>
GY> # Date 1206687269 25200
GY> # Node ID 9ae9d9c26a3024f02c8837ba0bca023385ab5c3d
GY> # Parent c9bb4d898469450c851139d5faa58a5818835e08
GY> [TEST] modified enmuclass lib support virt argument
GY> Meanwhile, adapt to the current format
So are you saying that the split() on "_" is temporary?
GY> + new_classname = classname.split('_')
GY> + if len(new_classname) == 2:
GY> + classname = classname[1]
Even if it is temporary, this should be:
new_classname = classname.split("_", 1)
so that you don't have to check the length.
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080328/9d4d8e9f/attachment.sig>
More information about the Libvirt-cim
mailing list