Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/v1.16/BUG FIXES-20260414-120000.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: BUG FIXES
body: hide check-scoped data sources from plan output
time: 2026-04-14T12:00:00.000000-04:00
custom:
Issue: "36536"
12 changes: 12 additions & 0 deletions internal/command/jsonformat/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ func (plan Plan) renderHuman(renderer Renderer, mode plans.Mode, opts ...plans.Q
// Don't render anything for deleted data sources.
continue
}
// Skip data sources that are reloaded only for check block verification
if action == plans.Read && diff.change.Mode == jsonstate.DataResourceMode &&
diff.change.ActionReason == jsonplan.ResourceInstanceReadBecauseCheckNested {
continue
}

changes = append(changes, diff)

Expand Down Expand Up @@ -395,6 +400,13 @@ func renderHumanDiff(renderer Renderer, diff diff, cause string) (string, bool)
// Skip resource changes that have nothing interesting to say.
return "", false
}
// Skip data sources that are reloaded only for check block verification
if diff.change.Mode == jsonstate.DataResourceMode &&
diff.change.ActionReason == jsonplan.ResourceInstanceReadBecauseCheckNested &&
action == plans.Read {
return "", false
}


var buf bytes.Buffer
buf.WriteString(renderer.Colorize.Color(resourceChangeComment(diff.change, action, cause)))
Expand Down
Loading