X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Finterface.py;fp=sfa%2Fserver%2Finterface.py;h=7d2beef6210f6edf3f551510436e4b09250b1d09;hb=ee8a376da1107884bee1ea29248a70e4da8410c9;hp=d2b96b7f753346d294b041ce0ae4e10b1956a0ef;hpb=cf2a552a8c4a8fe17e2e424634520700860d4710;p=sfa.git diff --git a/sfa/server/interface.py b/sfa/server/interface.py index d2b96b7f..7d2beef6 100644 --- a/sfa/server/interface.py +++ b/sfa/server/interface.py @@ -70,6 +70,10 @@ class Interfaces(dict): # port is appended onto the domain, before the path. Should look like: # http://domain:port/path hrn, address, port = record['hrn'], record['addr'], record['port'] + # sometime this is called at a very early stage with no config loaded + # avoid to remember this instance in such a case + if not address or not port: + continue interface = Interface(hrn, address, port) self[hrn] = interface