remove duplicate remote output line

Signed-off-by: Paul Thrasher <pthrasher@hashicorp.com>
This commit is contained in:
Paul Thrasher 2019-04-25 10:52:19 -07:00
parent bb12206bca
commit 0e27a8862f
No known key found for this signature in database
GPG Key ID: D4765F9CA4D82951
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ func (b *Remote) costEstimation(stopCtx, cancelCtx context.Context, op *backend.
switch ce.Status { switch ce.Status {
case tfe.CostEstimationFinished: 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------------------------------------------------------------------------") b.CLI.Output("\n------------------------------------------------------------------------")
} }
return nil return nil