From ea8d2312143299bffeb4b99586382daf21ec7df1 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Feb 2026 02:59:38 +0000 Subject: [PATCH] Fix UnboundLocalError for exports_result_from_proxy on query-type resources Move initialization of exports_result_from_proxy before the `if type in ('resource', 'multi')` block so it is defined for all resource types including 'query'. https://claude.ai/code/session_015oTrpXVQk89B8nPGoTkoco --- stackql_deploy/cmd/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stackql_deploy/cmd/build.py b/stackql_deploy/cmd/build.py index 6805059..8b4e093 100644 --- a/stackql_deploy/cmd/build.py +++ b/stackql_deploy/cmd/build.py @@ -149,6 +149,8 @@ def run(self, dry_run, show_queries, on_failure, output_file=None): self.logger ) + exports_result_from_proxy = None # Track exports result if used as proxy + if type in ('resource', 'multi'): ignore_errors = False @@ -161,7 +163,6 @@ def run(self, dry_run, show_queries, on_failure, output_file=None): # # OPTIMIZED exists and state check - try exports first for happy path # - exports_result_from_proxy = None # Track exports result if used as proxy if createorupdate_query: pass