git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44bbb80
)
fix bug when rec.plc_node_stats is None
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Thu, 17 Jun 2010 15:31:52 +0000
(15:31 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Thu, 17 Jun 2010 15:31:52 +0000
(15:31 +0000)
commands/nodebad.py
patch
|
blob
|
history
diff --git
a/commands/nodebad.py
b/commands/nodebad.py
index
dc86664
..
bdc0891
100755
(executable)
--- a/
commands/nodebad.py
+++ b/
commands/nodebad.py
@@
-50,7
+50,7
@@
def check_node_state(rec, node):
if boot_state == 'disable': boot_state = 'disabled'
if boot_state == 'diag' or boot_state == 'diagnose': boot_state = 'safeboot'
- if len(rec.plc_node_stats['pcu_ids']) > 0:
+ if
rec.plc_node_stats is not None and
len(rec.plc_node_stats['pcu_ids']) > 0:
node.haspcu = True
else:
node.haspcu = False