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)