From 0bcd433deeda4341bb850a3028fc418f58974aba Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Fri, 25 Oct 2024 15:57:38 +0200 Subject: [PATCH] make sure we only access decl if it is present --- internal/backend/local/backend_apply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/local/backend_apply.go b/internal/backend/local/backend_apply.go index 6c6d455a73b5..2a0a4d38baf9 100644 --- a/internal/backend/local/backend_apply.go +++ b/internal/backend/local/backend_apply.go @@ -272,7 +272,7 @@ func (b *Local) opApply( } // If the var is declared as ephemeral in config, go ahead and handle it - if decl.Ephemeral { + if ok && decl.Ephemeral { // Determine whether this is an apply-time variable, i.e. an // ephemeral variable that was set (non-null) during the // planning phase.