Commit 2985e505 authored by Jiahang Chen's avatar Jiahang Chen
Browse files

search broker endpoints only by launching DT

parent e62c2400
Pipeline #438464 passed with stages
in 50 seconds
...@@ -392,7 +392,6 @@ def __connect_with_broker(self): ...@@ -392,7 +392,6 @@ def __connect_with_broker(self):
+ BColors.ENDC + BColors.ENDC
+ ": Connect with S3I Broker" + ": Connect with S3I Broker"
) )
self.__endpoint = find_broker_endpoint(self.dir, thing_id=self.thing_id)
if self.__is_broker_rest: if self.__is_broker_rest:
self.broker = BrokerREST(token=self.access_token) self.broker = BrokerREST(token=self.access_token)
...@@ -418,6 +417,7 @@ def receive(): ...@@ -418,6 +417,7 @@ def receive():
else: else:
if self.broker is None: if self.broker is None:
# first time to build a broker instance # first time to build a broker instance
self.__endpoint = find_broker_endpoint(self.dir, thing_id=self.thing_id)
self.broker = Broker( self.broker = Broker(
auth_form="Username/Password", auth_form="Username/Password",
username=" ", username=" ",
......
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