Skip to content

Commit

Permalink
Fix LGTM alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
damoncro committed Dec 2, 2021
1 parent 946d5e9 commit 5948b55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pystarport/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ def format_value(v, ctx):
if __name__ == "__main__":
interact("rm -r data; mkdir data", ignore_error=True)
data_dir = Path("data")
init_cluster(data_dir, "config.yaml", 26650)
init_cluster(data_dir, "config.yaml", 26650, None)
supervisord = start_cluster(data_dir)
t = start_tail_logs_thread(data_dir)
supervisord.wait()
Expand Down
8 changes: 4 additions & 4 deletions pystarport/expansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ def expand(dotenv):
if dotenv is not None:
if "dotenv" in config:
_ = config.pop("dotenv", {}) # remove dotenv field if exists
dotenv = dotenv
config = expand(dotenv)
dotenv_path = dotenv
config = expand(dotenv_path)
elif "dotenv" in config:
dotenv = config.pop("dotenv", {}) # pop dotenv field if exists
config = expand(dotenv)
dotenv_path = config.pop("dotenv", {}) # pop dotenv field if exists
config = expand(dotenv_path)

return config

0 comments on commit 5948b55

Please sign in to comment.