feat(shared): pass config data via init (#2042)
This commit is contained in:
parent
2bde574487
commit
1147853c63
8 changed files with 65 additions and 44 deletions
|
@ -75,7 +75,7 @@ class ApiClient:
|
|||
def __init__(self, logger=None, config_path="/etc/libretime/config.yml"):
|
||||
self.logger = logger or logging
|
||||
|
||||
config = Config(filepath=config_path)
|
||||
config = Config(config_path)
|
||||
self.base_url = config.general.public_url
|
||||
self.api_key = config.general.api_key
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue