git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run external checks on hosts to determine their boot state.
[monitor.git]
/
showlatlon.py
diff --git
a/showlatlon.py
b/showlatlon.py
index
af01bd7
..
a556953
100755
(executable)
--- a/
showlatlon.py
+++ b/
showlatlon.py
@@
-1,6
+1,6
@@
#!/usr/bin/python
#!/usr/bin/python
-import plc
+from monitor.wrapper import plc, plccache
api = plc.getAuthAPI()
import sys
api = plc.getAuthAPI()
import sys
@@
-86,9
+86,9
@@
def main():
fbstr = get_filefromglob(d, "production.findbad")
fbpcustr = get_filefromglob(d, "production.findbadpcus")
fbstr = get_filefromglob(d, "production.findbad")
fbpcustr = get_filefromglob(d, "production.findbadpcus")
- l_plcnodes =
database.dbLoad("l_plcnodes")
- l_plcsites =
database.dbLoad("l_plcsites")
- lb2hn =
database.dbLoad("plcdb_lb2hn")
+ l_plcnodes =
plccache.l_nodes
+ l_plcsites =
plccache.l_sites
+ lb2hn =
plccache.plcdb_lb2hn
fb = archive.load(fbstr)
fbpcu = archive.load(fbpcustr)
reboot.fb = fbpcu
fb = archive.load(fbstr)
fbpcu = archive.load(fbpcustr)
reboot.fb = fbpcu