Skip to content

Commit

Permalink
Testing Update and create
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushrangwala committed Sep 20, 2023
1 parent e5e0c96 commit ab508e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions equinix/resource_metal_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,8 @@ func doReinstall(ctx context.Context, client *packngo.Client, d *schema.Resource
return friendlyError(err)
}

deleteTimeout := d.Timeout(schema.TimeoutUpdate) - 30*time.Second - time.Since(start)
if err := waitForActiveDevice(ctx, d, meta, deleteTimeout); err != nil {
updateTimeout := d.Timeout(schema.TimeoutUpdate) - 30*time.Second - time.Since(start)
if err := waitForActiveDevice(ctx, d, meta, updateTimeout); err != nil {
return err
}
}
Expand Down

0 comments on commit ab508e1

Please sign in to comment.