repr here is wrong
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 19 May 2011 10:39:19 +0000 (12:39 +0200)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 19 May 2011 10:39:19 +0000 (12:39 +0200)
python/libvserver.py

index d8e686c..17f3508 100644 (file)
@@ -179,7 +179,7 @@ def vhi_type(type):
     if isinstance(type, int):
         return type
     else:
-        return _libvserver.__dict__["vcVHI_" + repr(type)]
+        return _libvserver.__dict__["vcVHI_%s" % type]
 def set_vhi_name(xid, type, val):
     _libvserver.vc_set_vhi_name(xid, vhi_type(type), val)
 def get_vhi_name(xid, type):