Fix lint errors

This commit is contained in:
David Boreham 2024-01-16 15:51:27 -07:00
parent 3c4e9c56d5
commit a5d9dba6c3
2 changed files with 3 additions and 2 deletions

View File

@ -111,7 +111,7 @@ class K8sDeployer(Deployer):
print("PVCs created:")
print(f"{pvc_resp}")
# Process compose files into a Deployment
deployment = self.cluster_info.get_deployment(image_pull_policy = None if self.is_kind() else "Always")
deployment = self.cluster_info.get_deployment(image_pull_policy=None if self.is_kind() else "Always")
# Create the k8s objects
if opts.o.debug:
print(f"Sending this deployment: {deployment}")
@ -205,7 +205,7 @@ class K8sDeployer(Deployer):
name=ingress.metadata.name, namespace=self.k8s_namespace
)
except client.exceptions.ApiException as e:
check_delete_exception(e)
_check_delete_exception(e)
if self.is_kind():
# Destroy the kind cluster

View File

@ -23,6 +23,7 @@ from stack_orchestrator.opts import opts
from stack_orchestrator.deploy.deploy_util import parsed_pod_files_map_from_file_names
from stack_orchestrator.deploy.deployer import DeployerException
def _run_command(command: str):
if opts.o.debug:
print(f"Running: {command}")