Skip to content

Commit a882394

Browse files
authored
fix(object_bucket): use context in datasource HeadBucket (#1472)
1 parent 9561dfd commit a882394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaleway/data_source_object_bucket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func dataSourceScalewayObjectStorageRead(ctx context.Context, d *schema.Resource
3737
}
3838

3939
log.Printf("[DEBUG] Reading Object Storage bucket: %s", input)
40-
_, err = s3Client.HeadBucket(input)
40+
_, err = s3Client.HeadBucketWithContext(ctx, input)
4141

4242
if err != nil {
4343
return diag.FromErr(fmt.Errorf("failed getting Object Storage bucket (%s): %w", bucket, err))

0 commit comments

Comments
 (0)