Commit 382cc095 authored by unknown's avatar unknown
Browse files

get bkc api key fro any incoming queue

parent 4336bb57
......@@ -12,7 +12,7 @@ class Settings:
building_center_info = registry.get_info("building-knowledge-information-center")
self.api_key = building_center_info["api_in"][registry.node_id]["key"]
self.api_key = next(iter(building_center_info["api_in"].values()))["key"]
self.base_url = "http://{}:{}/api/buildings".format(
building_center_info["service_addr"], building_center_info["service_port"]
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment