TFCE api correct pluralization

Signed-off-by: Paul Thrasher <pthrasher@hashicorp.com>
This commit is contained in:
Paul Thrasher 2019-04-23 16:37:23 -07:00
parent e479bd5dc3
commit 53f977bee2
No known key found for this signature in database
GPG Key ID: D4765F9CA4D82951
2 changed files with 3 additions and 3 deletions

View File

@ -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)
}

View File

@ -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)