Skip to content

Commit

Permalink
add "PENDING" to the task state list
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Dweikat-Ntx committed Dec 16, 2024
1 parent 168d853 commit c94cff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nutanix/services/prismv2/resource_nutanix_backup_target_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func ResourceNutanixBackupTargetV2Create(ctx context.Context, d *schema.Resource
taskconn := meta.(*conns.Client).PrismAPI
// Wait for the cluster to be available
stateConf := &resource.StateChangeConf{
Pending: []string{"RUNNING", "QUEUED"},
Pending: []string{"PENDING", "RUNNING", "QUEUED"},
Target: []string{"SUCCEEDED"},
Refresh: taskStateRefreshPrismTaskGroupFunc(ctx, taskconn, utils.StringValue(taskUUID)),
Timeout: d.Timeout(schema.TimeoutCreate),
Expand Down Expand Up @@ -346,7 +346,7 @@ func ResourceNutanixBackupTargetV2Update(ctx context.Context, d *schema.Resource
taskconn := meta.(*conns.Client).PrismAPI
// Wait for the backup target to be updated
stateConf := &resource.StateChangeConf{
Pending: []string{"RUNNING", "QUEUED"},
Pending: []string{"PENDING", "RUNNING", "QUEUED"},
Target: []string{"SUCCEEDED"},
Refresh: taskStateRefreshPrismTaskGroupFunc(ctx, taskconn, utils.StringValue(taskUUID)),
}
Expand Down Expand Up @@ -394,7 +394,7 @@ func ResourceNutanixBackupTargetV2Delete(ctx context.Context, d *schema.Resource
taskconn := meta.(*conns.Client).PrismAPI
// Wait for the backup target to be deleted
stateConf := &resource.StateChangeConf{
Pending: []string{"RUNNING", "QUEUED"},
Pending: []string{"PENDING", "RUNNING", "QUEUED"},
Target: []string{"SUCCEEDED"},
Refresh: taskStateRefreshPrismTaskGroupFunc(ctx, taskconn, utils.StringValue(taskUUID)),
}
Expand Down

0 comments on commit c94cff8

Please sign in to comment.