git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cleaner
[nodemanager.git]
/
tools.py
diff --git
a/tools.py
b/tools.py
index
74705aa
..
ffbf711
100644
(file)
--- a/
tools.py
+++ b/
tools.py
@@
-461,7
+461,7
@@
def get_node_virt():
virt = 'vs' if subprocess.call(['vserver', '--help']) == 0 else 'lxc'
except:
virt = 'lxc'
- with
file
(virt_stamp, "w") as f:
+ with
open
(virt_stamp, "w") as f:
f.write(virt)
return virt