From b395147d293739b049ca71d4200d3f6be7b96600 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 20 Nov 2023 10:02:45 -0700 Subject: [PATCH] Fix lint errors --- stack_orchestrator/deploy/deploy.py | 9 ++++++++- stack_orchestrator/deploy/images.py | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stack_orchestrator/deploy/deploy.py b/stack_orchestrator/deploy/deploy.py index 2ec14ff8..1bce586b 100644 --- a/stack_orchestrator/deploy/deploy.py +++ b/stack_orchestrator/deploy/deploy.py @@ -62,7 +62,14 @@ def command(ctx, include, exclude, env_file, cluster, deploy_to): def create_deploy_context( - global_context, deployment_context: DeploymentContext, stack, include, exclude, cluster, env_file, deploy_to) -> DeployCommandContext: + global_context, + deployment_context: DeploymentContext, + stack, + include, + exclude, + cluster, + env_file, + deploy_to) -> DeployCommandContext: cluster_context = _make_cluster_context(global_context, stack, include, exclude, cluster, env_file) deployment_dir = deployment_context.deployment_dir if deployment_context else None deployer = getDeployer(deploy_to, deployment_dir, compose_files=cluster_context.compose_files, diff --git a/stack_orchestrator/deploy/images.py b/stack_orchestrator/deploy/images.py index 0871ac79..9d40f28c 100644 --- a/stack_orchestrator/deploy/images.py +++ b/stack_orchestrator/deploy/images.py @@ -23,6 +23,7 @@ from stack_orchestrator.deploy.deployment_context import DeploymentContext from stack_orchestrator.deploy.deploy_types import DeployCommandContext from stack_orchestrator.deploy.deploy_util import images_for_deployment + def _image_needs_pushed(image: str): # TODO: this needs to be more intelligent return image.endswith(":local")