From 1a7e3854d2506376ca2f8638d58258912d075758 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Thu, 6 Oct 2022 06:50:42 -0600 Subject: [PATCH 1/2] Remove unused variables --- app/build_containers.py | 2 +- app/setup_repositories.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build_containers.py b/app/build_containers.py index 90b0515b..817dc0e3 100644 --- a/app/build_containers.py +++ b/app/build_containers.py @@ -44,7 +44,7 @@ def command(ctx, include, exclude): local_stack = ctx.obj.local_stack if local_stack: - dev_root_path = default = os.getcwd()[0:os.getcwd().rindex("stack-orchestrator")] + dev_root_path = os.getcwd()[0:os.getcwd().rindex("stack-orchestrator")] print(f'Local stack dev_root_path (CERC_REPO_BASE_DIR) overridden to: {dev_root_path}') else: dev_root_path = os.path.expanduser(config("CERC_REPO_BASE_DIR", default="~/cerc")) diff --git a/app/setup_repositories.py b/app/setup_repositories.py index 634fff33..db7fafb3 100644 --- a/app/setup_repositories.py +++ b/app/setup_repositories.py @@ -73,7 +73,7 @@ def command(ctx, check_only, pull, branches_file): local_stack = ctx.obj.local_stack if local_stack: - dev_root_path = default = os.getcwd()[0:os.getcwd().rindex("stack-orchestrator")] + dev_root_path = os.getcwd()[0:os.getcwd().rindex("stack-orchestrator")] print(f'Local stack dev_root_path (CERC_REPO_BASE_DIR) overridden to: {dev_root_path}') else: dev_root_path = os.path.expanduser(config("CERC_REPO_BASE_DIR", default="~/cerc")) From 914dde3effdd922dea573ab98931a45abe21082a Mon Sep 17 00:00:00 2001 From: David Boreham Date: Thu, 6 Oct 2022 06:51:55 -0600 Subject: [PATCH 2/2] Extra line --- cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cli.py b/cli.py index 06c4aa7e..ab1d21f8 100644 --- a/cli.py +++ b/cli.py @@ -29,6 +29,7 @@ class Options(object): self.dry_run = dry_run self.local_stack = local_stack + @click.group(context_settings=CONTEXT_SETTINGS) @click.option('--quiet', is_flag=True, default=False) @click.option('--verbose', is_flag=True, default=False)