Support external stack file #650

Merged
telackey merged 7 commits from dboreham/external-stack-file into main 2023-11-15 03:59:48 +00:00
Showing only changes of commit 9cb10d200d - Show all commits

View File

@ -249,7 +249,7 @@ def command(ctx, include, exclude, git_ssh, check_only, pull, branches, branches
error_exit(f"stack {stack} does not exist")
with stack_file_path:
stack_config = yaml.safe_load(open(stack_file_path, "r"))
if not "repos" in stack_config:
if "repos" not in stack_config:
error_exit(f"stack {stack} does not define any repositories")
else:
repos_in_scope = stack_config["repos"]