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
Thomas's change to ensure tighter synchro between conf_files lxc_sliceimage and nodem...
[nodemanager.git]
/
tools.py
diff --git
a/tools.py
b/tools.py
index
334f33f
..
02e2ab9
100644
(file)
--- a/
tools.py
+++ b/
tools.py
@@
-314,6
+314,7
@@
def get_node_virt ():
# cache result in memory as _has_systemctl
_has_systemctl=None
def has_systemctl ():
# cache result in memory as _has_systemctl
_has_systemctl=None
def has_systemctl ():
+ global _has_systemctl
if _has_systemctl is None:
_has_systemctl = (subprocess.call([ 'systemctl', '--help' ]) == 0)
return _has_systemctl
if _has_systemctl is None:
_has_systemctl = (subprocess.call([ 'systemctl', '--help' ]) == 0)
return _has_systemctl