mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
fix: Return non-aws errors if bucket creation fails
This commit is contained in:
parent
bcd8306460
commit
35345c92af
@ -219,8 +219,11 @@ func resourceAwsS3BucketCreate(d *schema.ResourceData, meta interface{}) error {
|
||||
return fmt.Errorf("[WARN] Error creating S3 bucket %s, retrying: %s",
|
||||
bucket, err)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return resource.RetryError{Err: err}
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user