Skip to content

Commit

Permalink
Fix incorrect timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrondier committed Dec 18, 2024
1 parent c3c4b9d commit cd27a3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/resources/instance_pool/datasource_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func dsListRead(ctx context.Context, d *schema.ResourceData, meta interface{}) d

zone := d.Get(AttrZone).(string)

ctx, cancel := context.WithTimeout(ctx, d.Timeout(schema.TimeoutCreate))
ctx, cancel := context.WithTimeout(ctx, d.Timeout(schema.TimeoutRead))
defer cancel()

defaultClientV3, err := config.GetClientV3(meta)
Expand Down
6 changes: 3 additions & 3 deletions pkg/resources/instance_pool/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func rRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.D

zone := d.Get(AttrZone).(string)

ctx, cancel := context.WithTimeout(ctx, d.Timeout(schema.TimeoutCreate))
ctx, cancel := context.WithTimeout(ctx, d.Timeout(schema.TimeoutRead))
defer cancel()

defaultClientV3, err := config.GetClientV3(meta)
Expand Down Expand Up @@ -483,7 +483,7 @@ func rUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag

zone := d.Get(AttrZone).(string)

ctx, cancel := context.WithTimeout(ctx, d.Timeout(schema.TimeoutCreate))
ctx, cancel := context.WithTimeout(ctx, d.Timeout(schema.TimeoutUpdate))
defer cancel()

defaultClientV3, err := config.GetClientV3(meta)
Expand Down Expand Up @@ -725,7 +725,7 @@ func rDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag

zone := d.Get(AttrZone).(string)

ctx, cancel := context.WithTimeout(ctx, d.Timeout(schema.TimeoutCreate))
ctx, cancel := context.WithTimeout(ctx, d.Timeout(schema.TimeoutDelete))
defer cancel()

defaultClientV3, err := config.GetClientV3(meta)
Expand Down

0 comments on commit cd27a3e

Please # to comment.