Skip to content

Commit

Permalink
updated S3 client
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Dec 17, 2024
1 parent f71cf80 commit c1d3761
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/clients/s3/s3_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit c1d3761

Please sign in to comment.