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
general improvements
[monitor.git]
/
monitor
/
wrapper
/
plccache.py
diff --git
a/monitor/wrapper/plccache.py
b/monitor/wrapper/plccache.py
index
f872d7a
..
978e6bb
100755
(executable)
--- a/
monitor/wrapper/plccache.py
+++ b/
monitor/wrapper/plccache.py
@@
-21,6
+21,10
@@
def dsn_from_dsln(d_sites, id2lb, l_nodes):
lb2hn = {}
dsn = {}
hn2lb = {}
+ for id in id2lb:
+ if id2lb[id] not in lb2hn:
+ lb2hn[id2lb[id]] = []
+
for node in l_nodes:
# this won't reach sites without nodes, which I guess isn't a problem.
if node['site_id'] in id2lb.keys():