make sure we only access decl if it is present

pull/35903/head
Daniel Schmidt 2 years ago
parent 0a71f24453
commit bf68ac8110
No known key found for this signature in database
GPG Key ID: 377C3A4D62FBBBE2

@ -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.

Loading…
Cancel
Save