GY> # HG changeset patch
GY> # User Guolian Yun <yunguol(a)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(a)us.ibm.com