From e6d0c900987657a3c6178c8a7a9a6bc2c0584300 Mon Sep 17 00:00:00 2001 From: "A. F. Dudley" Date: Tue, 20 Jan 2026 06:23:25 -0500 Subject: [PATCH] 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 --- stack_orchestrator/deploy/deployment_create.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stack_orchestrator/deploy/deployment_create.py b/stack_orchestrator/deploy/deployment_create.py index 5daffad8..5ec6b33c 100644 --- a/stack_orchestrator/deploy/deployment_create.py +++ b/stack_orchestrator/deploy/deployment_create.py @@ -368,7 +368,10 @@ def init_operation(deploy_command_context, stack, deployer_type, config, spec_file_content.update({"config": merged_config}) ports = _get_mapped_ports(stack, map_ports_to_host) - spec_file_content.update({"network": {"ports": ports}}) + # Merge network section instead of overwriting (preserve http-proxy from stack init) + orig_network = spec_file_content.get("network", {}) + orig_network["ports"] = ports + spec_file_content["network"] = orig_network named_volumes = _get_named_volumes(stack) if named_volumes: