Skip to content

Commit e6d0c90

Browse files
AFDudleyclaude
andcommitted
Fix network section merge to preserve http-proxy from stack init
The network section was being overwritten by ports, losing any http-proxy configuration provided by the stack's init hook. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 81fb467 commit e6d0c90

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

stack_orchestrator/deploy/deployment_create.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,10 @@ def init_operation(deploy_command_context, stack, deployer_type, config,
368368
spec_file_content.update({"config": merged_config})
369369

370370
ports = _get_mapped_ports(stack, map_ports_to_host)
371-
spec_file_content.update({"network": {"ports": ports}})
371+
# Merge network section instead of overwriting (preserve http-proxy from stack init)
372+
orig_network = spec_file_content.get("network", {})
373+
orig_network["ports"] = ports
374+
spec_file_content["network"] = orig_network
372375

373376
named_volumes = _get_named_volumes(stack)
374377
if named_volumes:

0 commit comments

Comments
 (0)