Commit b4fa94cb authored by Jiahang Chen's avatar Jiahang Chen
Browse files

FIX:parameters

parent f6378451
Pipeline #599080 passed with stage
in 18 seconds
......@@ -23,37 +23,48 @@ def __init__(self,
thing_sync_freq=None
):
if idp_url is None:
self.__idp_url = idp_url
self.__idp_realm =idp_realm
self.__broker_host = broker_host
self.__broker_vhost = broker_vhost
self.__repo_url = repo_url
self.__repo_wws_url = repo_wws_url
self.__dir_url = dir_url
self.__repo_sync_freq = repo_sync_freq
self.__dir_sync_freq = dir_sync_freq
self.__thing_sync_freq = thing_sync_freq
if self.__idp_url is None:
self.__idp_url = self.DEFAULT_IDP_URL
if idp_realm is None:
if self.__idp_realm is None:
self.__idp_realm = self.DEFAULT_IDP_REALM
if broker_host is None:
if self.__broker_host is None:
self.__broker_host = self.DEFAULT_BROKER_HOST
if broker_vhost is None:
if self.__broker_vhost is None:
self.__broker_vhost = self.DEFAULT_BROKER_VHOST
if repo_url is None:
if self.__repo_url is None:
self.__repo_url = self.DEFAULT_REPO_URL
if repo_wws_url is None:
if self.__repo_wws_url is None:
self.__repo_wws_url = self.DEFAULT_REPO_WWS_URL
if dir_url is None:
if self.__dir_url is None:
self.__dir_url = self.DEFAULT_DIR_URL
if repo_url is None:
if self.__repo_url is None:
self.__repo_url = self.DEFAULT_REPO_URL
if repo_sync_freq is None:
if self.__repo_sync_freq is None:
self.__repo_sync_freq = self.DEFAULT_REPO_SNYC_FREQ
if dir_sync_freq is None:
if self.__dir_sync_freq is None:
self.__dir_sync_freq = self.DEFAULT_DIR_SYNC_FREQ
if thing_sync_freq is None:
if self.__thing_sync_freq is None:
self.__thing_sync_freq = self.DEFAULT_THING_SYNC_FREQ
@property
......
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