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
Make sure the account exists before trying to check if it's running.
[nodemanager.git]
/
accounts.py
diff --git
a/accounts.py
b/accounts.py
index
04ccc20
..
480129c
100644
(file)
--- a/
accounts.py
+++ b/
accounts.py
@@
-132,7
+132,7
@@
class Worker:
def stop(self): self._acct.stop()
def is_running(self):
- if self._acct.is_running():
+ if
(self._acct != None) and
self._acct.is_running():
status = True
else:
status = False