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:
1ec0349
)
error message when module lacks the start method
author
smbaker
<smbaker@fc16-64.lan>
Tue, 11 Dec 2012 01:16:20 +0000
(17:16 -0800)
committer
smbaker
<smbaker@fc16-64.lan>
Tue, 11 Dec 2012 01:16:20 +0000
(17:16 -0800)
nodemanager.py
[changed mode: 0755->0644]
patch
|
blob
|
history
diff --git
a/nodemanager.py
b/nodemanager.py
old mode 100755
(executable)
new mode 100644
(file)
index
cdd5e45
..
e998a04
--- a/
nodemanager.py
+++ b/
nodemanager.py
@@
-203,6
+203,12
@@
If this is not the case, please remove the pid file %s. -- exiting""" % (other_p
# if we fail to load any of these, it's really no need to go on any further
if module in NodeManager.core_modules:
logger.log("FATAL : failed to load core module %s"%module)
# if we fail to load any of these, it's really no need to go on any further
if module in NodeManager.core_modules:
logger.log("FATAL : failed to load core module %s"%module)
+ except AttributeError, err:
+ # triggered when module doesn't have a 'start' method
+ logger.log_exc ("ERROR while starting module %s - skipping:" % module)
+ # if we fail to load any of these, it's really no need to go on any further
+ if module in NodeManager.core_modules:
+ logger.log("FATAL : failed to start core module %s"%module)
# sort on priority (lower first)
def sort_module_priority (m1,m2):
# sort on priority (lower first)
def sort_module_priority (m1,m2):