X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=monitor%2Fwrapper%2Fplccache.py;h=978e6bb0957ea08b250205fce2dbf1a82b8aeee9;hb=19ba97634589f5cce3719dbe0f96d94e3e148e1d;hp=f872d7af6c07ab63f319253f34b49db33162aa58;hpb=170be1fae6fd5956641668443245c50fbf7fd566;p=monitor.git diff --git a/monitor/wrapper/plccache.py b/monitor/wrapper/plccache.py index f872d7a..978e6bb 100755 --- 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():