Skip to content

Commit

Permalink
PB-8360: Adding appropriate error check for IBM COS in case the bucke…
Browse files Browse the repository at this point in the history
…t is unlocked
  • Loading branch information
shkumari-px committed Oct 2, 2024
1 parent 06954f7 commit bdadeff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/objectstore/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bdadeff

Please sign in to comment.