From 0e27a8862fcc4a8306ffbaf9a0a3abc6e23bd98e Mon Sep 17 00:00:00 2001 From: Paul Thrasher Date: Thu, 25 Apr 2019 10:52:19 -0700 Subject: [PATCH] remove duplicate remote output line Signed-off-by: Paul Thrasher --- backend/remote/backend_common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/remote/backend_common.go b/backend/remote/backend_common.go index 34c851467..2f9399323 100644 --- a/backend/remote/backend_common.go +++ b/backend/remote/backend_common.go @@ -276,7 +276,7 @@ func (b *Remote) costEstimation(stopCtx, cancelCtx context.Context, op *backend. switch ce.Status { case tfe.CostEstimationFinished: - if r.HasChanges && op.Type == backend.OperationTypeApply || b.CLI != nil { + if len(r.PolicyChecks) == 0 && r.HasChanges && op.Type == backend.OperationTypeApply && b.CLI != nil { b.CLI.Output("\n------------------------------------------------------------------------") } return nil