Skip to content

Commit

Permalink
bugfix(config yaml): fix parsing verbose_log and quickstart configs
Browse files Browse the repository at this point in the history
  • Loading branch information
imhuwq committed Jan 2, 2024
1 parent a19f6e9 commit 302d773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deepdataspace/scripts/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
help="Set the http service port, default 8765.")
@click.option("--reload", is_flag=True, default=None,
help="Auto reload service on code change, for development only.")
@click.option("--configfile",
@click.option("--configfile", "-C",
help="Load the target yaml file to initialize more configurations. "
"The command line options take precedence of the config file.")
def start_dds(data_dir, quickstart, verbose, public, host, port, reload, configfile):
Expand Down
5 changes: 3 additions & 2 deletions deepdataspace/services/dds.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ def __init__(self,
for key, val in config_data.items():
if val is not None:
self.config_data[key] = val
print(f"reading config, {key} = {val}")

self.data_dir = self.argument_or_config("data_dir", data_dir, None)
self.quickstart = self.argument_or_config("quickstart", quickstart, False)
self.verbose = self.argument_or_config("verbose", verbose, False)
self.quickstart = self.argument_or_config("quick_start", quickstart, False)
self.verbose = self.argument_or_config("verbose_log", verbose, False)
self.public = public or False
if host is None and public:
host = get_output_ip_address()
Expand Down

0 comments on commit 302d773

Please sign in to comment.