Fix lint and deploy test failures
Some checks failed
Smoke Test / Run basic test suite (pull_request) Has been cancelled
Webapp Test / Run webapp test suite (pull_request) Has been cancelled
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Has been cancelled
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Has been cancelled
Deploy Test / Run deploy test suite (pull_request) Has been cancelled
Lint Checks / Run linter (pull_request) Has been cancelled

- 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 <noreply@anthropic.com>
This commit is contained in:
Prathamesh Musale 2026-03-12 10:32:57 +00:00
parent a9bd110001
commit 6c00176048
2 changed files with 2 additions and 2 deletions

View File

@ -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
"""

View File

@ -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", "")