TFCE api correct pluralization
Signed-off-by: Paul Thrasher <pthrasher@hashicorp.com>
This commit is contained in:
parent
e479bd5dc3
commit
53f977bee2
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue