From c0b1220a92976995cead30cba852165a0fd67283 Mon Sep 17 00:00:00 2001 From: Jon Burgess Date: Thu, 27 Jun 2019 17:30:35 +1000 Subject: [PATCH] Fixes #21907 Don't show no-ops in `terraform show`, since it's not something that will change any state. --- command/format/plan.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/command/format/plan.go b/command/format/plan.go index 098653fcf69b..ef129a9289db 100644 --- a/command/format/plan.go +++ b/command/format/plan.go @@ -83,6 +83,10 @@ func NewPlan(changes *plans.Changes) *Plan { continue } + if rc.Action == plans.NoOp { + continue + } + // For now we'll shim this to work with our old types. // TODO: Update for the new plan types, ideally also switching over to // a structural diff renderer instead of a flat renderer.