git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61c1ca0
)
file() is deprecated
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Sun, 30 Dec 2018 16:01:45 +0000
(17:01 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Sun, 30 Dec 2018 16:01:45 +0000
(17:01 +0100)
tools.py
patch
|
blob
|
history
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