From bdadeffb7a42c4c952ba640d296496b25e7c30ec Mon Sep 17 00:00:00 2001 From: shkumari-px Date: Mon, 30 Sep 2024 10:04:09 +0000 Subject: [PATCH] PB-8360: Adding appropriate error check for IBM COS in case the bucket is unlocked --- pkg/objectstore/s3/s3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/objectstore/s3/s3.go b/pkg/objectstore/s3/s3.go index f020e62ead..dfe3241372 100644 --- a/pkg/objectstore/s3/s3.go +++ b/pkg/objectstore/s3/s3.go @@ -110,7 +110,8 @@ func GetObjLockInfo(backupLocation *stork_api.BackupLocation) (*common.ObjLockIn awsErr.Code() == "ObjectLockConfigurationNotFound" || awsErr.Code() == "NotImplemented" || awsErr.Code() == "NoSuchBucket" || - awsErr.Code() == "NoSuchBucketObjectLockConfiguration" { + awsErr.Code() == "NoSuchBucketObjectLockConfiguration" || + awsErr.Code() == "UnsupportedOperation" { // for a non-objectlocked bucket we needn't throw error return objLockInfo, nil }