Skip to content

Commit cbfa072

Browse files
ephemeral: guard against plan with no changes
1 parent 9f0a59a commit cbfa072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/terraform/context_plan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ The -target option is not for routine use, and is provided only for exceptional
349349
panic("nil plan but no errors")
350350
}
351351

352-
if plan != nil {
352+
if plan != nil && plan.Changes != nil {
353353
relevantAttrs, rDiags := c.relevantResourceAttrsForPlan(config, plan)
354354
diags = diags.Append(rDiags)
355355
plan.RelevantAttributes = relevantAttrs

0 commit comments

Comments
 (0)