Skip to content

Commit

Permalink
move to retry
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Nov 23, 2023
1 parent 25ad583 commit af7732e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resources/resource_instances_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/HewlettPackard/hpegl-vmaas-terraform-resources/internal/utils"
"github.com/HewlettPackard/hpegl-vmaas-terraform-resources/pkg/client"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)
Expand Down Expand Up @@ -404,7 +404,7 @@ func instanceHelperUpdateContext(
return diag.FromErr(err)
}
// Wait for the status to be running
updateStateConf := resource.StateChangeConf{
updateStateConf := retry.StateChangeConf{
Delay: instanceUpdateRetryDelay,
Pending: []string{utils.StateResizing, utils.StateStopping, utils.StateSuspending, utils.StateRestarting},
Target: []string{utils.StateRunning, utils.StateStopped, utils.StateSuspended},
Expand Down

0 comments on commit af7732e

Please sign in to comment.