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:
0eb237a
)
removes function definitions consolidated in reboot.py
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 5 Nov 2007 22:29:50 +0000
(22:29 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 5 Nov 2007 22:29:50 +0000
(22:29 +0000)
findbadpcu.py
patch
|
blob
|
history
diff --git
a/findbadpcu.py
b/findbadpcu.py
index
365c281
..
c7dc9d4
100755
(executable)
--- a/
findbadpcu.py
+++ b/
findbadpcu.py
@@
-61,6
+61,7
@@
externalState = {'round': round, 'nodes': {'a': None}}
count = 0
import reboot
+from reboot import pcu_name
import soltesz
import plc
@@
-68,14
+69,6
@@
import comon
import threadpool
import syncplcdb
-def pcu_name(pcu):
- if pcu['hostname'] is not None and pcu['hostname'] is not "":
- return pcu['hostname']
- elif pcu['ip'] is not None and pcu['ip'] is not "":
- return pcu['ip']
- else:
- return None
-
def nmap_portstatus(status):
ps = {}
l_nmap = status.split()