From 53f977bee2044dbabef31931c0c0a9301344286e Mon Sep 17 00:00:00 2001 From: Paul Thrasher Date: Tue, 23 Apr 2019 16:37:23 -0700 Subject: [PATCH] TFCE api correct pluralization Signed-off-by: Paul Thrasher --- backend/remote/backend_common.go | 4 ++-- backend/remote/backend_plan.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/remote/backend_common.go b/backend/remote/backend_common.go index 623403a22..91a13b763 100644 --- a/backend/remote/backend_common.go +++ b/backend/remote/backend_common.go @@ -233,14 +233,14 @@ func (b *Remote) costEstimation(stopCtx, cancelCtx context.Context, op *backend. } var ce = r.CostEstimation - logs, err := b.client.CostEstimation.Logs(stopCtx, ce.ID) + logs, err := b.client.CostEstimations.Logs(stopCtx, ce.ID) if err != nil { return generalError("Failed to retrieve cost estimation logs", err) } scanner := bufio.NewScanner(logs) // Retrieve the cost estimation to get its current status. - ce, err := b.client.CostEstimation.Read(stopCtx, ce.ID) + ce, err = b.client.CostEstimations.Read(stopCtx, ce.ID) if err != nil { return generalError("Failed to retrieve cost estimation", err) } diff --git a/backend/remote/backend_plan.go b/backend/remote/backend_plan.go index 07e7422d0..662e28ef3 100644 --- a/backend/remote/backend_plan.go +++ b/backend/remote/backend_plan.go @@ -291,7 +291,7 @@ func (b *Remote) plan(stopCtx, cancelCtx context.Context, op *backend.Operation, } // Show Cost Estimation - if r.CostEstimations != nil { + if r.CostEstimation != nil { err = b.costEstimation(stopCtx, cancelCtx, op, r) if err != nil { generalError("Cost Estimation error", err)