diff --git a/pkg/clients/s3/s3_client.go b/pkg/clients/s3/s3_client.go index 662b8ce8..d0e6c154 100644 --- a/pkg/clients/s3/s3_client.go +++ b/pkg/clients/s3/s3_client.go @@ -14,7 +14,6 @@ import ( "github.com/aws/aws-sdk-go-v2/service/s3/types" "github.com/aws/smithy-go/logging" "github.com/scality/cosi-driver/pkg/util" - "k8s.io/klog/v2" ) type S3API interface { @@ -79,12 +78,7 @@ func (client *S3Client) CreateBucket(ctx context.Context, bucketName string, par } _, err := client.S3Service.CreateBucket(ctx, input) - if err != nil { - return err - } - - klog.InfoS("Bucket creation operation succeeded", "name", bucketName, "region", params.Region) - return nil + return err } func (client *S3Client) DeleteBucket(ctx context.Context, bucketName string) error {