Skip to content

Commit

Permalink
make sure we only access decl if it is present
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Oct 25, 2024
1 parent 7a97a9a commit 3b589fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/local/backend_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3b589fa

Please sign in to comment.