Make StorageFarmBroker use specified or default handler

This commit is contained in:
David Stainton
2016-08-26 11:17:56 +00:00
parent de61cd260c
commit 140c9a92cd
3 changed files with 12 additions and 6 deletions

View File

@ -377,8 +377,11 @@ class Client(node.Node, pollmixin.PollMixin):
# utilize the loaded static server specifications
for key, server in self.connections_config['servers'].items():
handlers = None
if server.haskey("transport_handlers"):
handlers = server["transport_handlers"]
eventually(self.storage_broker.got_static_announcement,
key, server['announcement'])
key, server['announcement'], handlers)
sb.use_introducer(self.introducer_client)