git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9f4de1c
)
Convert values to strings before writing to config file
author
Steve Muir
<smuir@cs.princeton.edu>
Fri, 7 Oct 2005 20:13:05 +0000
(20:13 +0000)
committer
Steve Muir
<smuir@cs.princeton.edu>
Fri, 7 Oct 2005 20:13:05 +0000
(20:13 +0000)
python/vserver.py
patch
|
blob
|
history
diff --git
a/python/vserver.py
b/python/vserver.py
index
bc65a1b
..
7774ceb
100644
(file)
--- a/
python/vserver.py
+++ b/
python/vserver.py
@@
-84,7
+84,7
@@
class VServer:
(key, val) = m.groups()
newval = todo.pop(key, None)
if newval != None:
- data = data[:m.start(2)] +
newval
+ data[m.end(2):]
+ data = data[:m.start(2)] +
str(newval)
+ data[m.end(2):]
changed = True
for (newkey, newval) in todo.items():
data += "%s=%s\n" % (newkey, newval)