Skip to content

Commit

Permalink
bug: read file from wrong location
Browse files Browse the repository at this point in the history
  • Loading branch information
maaktweluit committed Nov 15, 2021
1 parent db2a70d commit 1272095
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions goth/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,16 +207,15 @@ def read_compose_config(self) -> ComposeConfig:
log_patterns = self.get("compose-log-patterns")
log_patterns.ensure_type(dict)

compose_file = self.get("compose-file", DEFAULT_COMPOSE_FILE)
build_env_config = self.get("build-environment")
# `build_env_config` may be `None` if no optional build parameters
# (binary path, commit hash etc.) are specified in the config file
if build_env_config:
build_env_config.ensure_type(dict)
build_env = build_env_config.read_build_env(docker_dir)
compose_file = build_env_config["compose-file"]
else:
build_env = YagnaBuildEnvironment(docker_dir)
compose_file = DEFAULT_COMPOSE_FILE

return ComposeConfig(build_env, docker_dir / compose_file, log_patterns.doc)

Expand Down

0 comments on commit 1272095

Please sign in to comment.