From 6c00176048727053b494dbcb1e578e11491e163b Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 12 Mar 2026 10:32:57 +0000 Subject: [PATCH] Fix lint and deploy test failures - Rename ambiguous variable 'l' to 'item' in cluster_info.py (flake8 E741) - Use underscore in test config variable name (Docker Compose rejects hyphens in env var names) Co-Authored-By: Claude Opus 4.6 --- stack_orchestrator/data/stacks/test/deploy/commands.py | 2 +- stack_orchestrator/deploy/k8s/cluster_info.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stack_orchestrator/data/stacks/test/deploy/commands.py b/stack_orchestrator/data/stacks/test/deploy/commands.py index 356338af..1740199b 100644 --- a/stack_orchestrator/data/stacks/test/deploy/commands.py +++ b/stack_orchestrator/data/stacks/test/deploy/commands.py @@ -21,7 +21,7 @@ from stack_orchestrator.deploy.deploy_util import VolumeMapping, run_container_c from pathlib import Path default_spec_file_content = """config: - test-variable-1: test-value-1 + test_variable_1: test-value-1 """ diff --git a/stack_orchestrator/deploy/k8s/cluster_info.py b/stack_orchestrator/deploy/k8s/cluster_info.py index 9833c988..1d95fa6a 100644 --- a/stack_orchestrator/deploy/k8s/cluster_info.py +++ b/stack_orchestrator/deploy/k8s/cluster_info.py @@ -592,7 +592,7 @@ class ClusterInfo: if isinstance(svc_labels, list): # docker-compose labels can be a list of "key=value" svc_labels = dict( - l.split("=", 1) for l in svc_labels + item.split("=", 1) for item in svc_labels ) is_init = str( svc_labels.get("laconic.init-container", "")