use get_host() in connect()
This commit is contained in:
parent
343521ca25
commit
caed5accea
|
@ -419,9 +419,8 @@ class WebApi(JSONComponent):
|
||||||
d = Deferred()
|
d = Deferred()
|
||||||
def on_connected(methods):
|
def on_connected(methods):
|
||||||
d.callback(methods)
|
d.callback(methods)
|
||||||
for host in self.host_list["hosts"]:
|
host = self.get_host(host_id)
|
||||||
if host_id != host[0]:
|
if host:
|
||||||
continue
|
|
||||||
self._json.connect(*host[1:]).addCallback(on_connected)
|
self._json.connect(*host[1:]).addCallback(on_connected)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue