Skip to content

Commit

Permalink
wait: use the correct timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
  • Loading branch information
MrFreezeex committed Jul 12, 2022
1 parent 3fb1d39 commit e34018f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ceph/resource_wait_online.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func resourceWaitOnlineCreate(ctx context.Context, d *schema.ResourceData, meta
config := meta.(*Config)
log.Printf("[DEBUG] Ceph starting ceph_wait_online")

err := resource.RetryContext(ctx, d.Timeout(schema.TimeoutRead), func() *resource.RetryError {
err := resource.RetryContext(ctx, d.Timeout(schema.TimeoutCreate), func() *resource.RetryError {
_, err := config.GetCephConnection()
if err == nil {
log.Printf("[DEBUG] Ceph online on ceph_wait_online")
Expand Down

0 comments on commit e34018f

Please sign in to comment.