projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
952de66
)
repr here is wrong
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Thu, 19 May 2011 10:39:19 +0000 (12:39 +0200)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Thu, 19 May 2011 10:39:19 +0000 (12:39 +0200)
python/libvserver.py
patch
|
blob
|
history
diff --git
a/python/libvserver.py
b/python/libvserver.py
index
d8e686c
..
17f3508
100644
(file)
--- a/
python/libvserver.py
+++ b/
python/libvserver.py
@@
-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):