pb-2903: Added error handling for  GetObjLockInfo api for cloudian
objectstore.
- In the case of cloudian objectore, GetObjectLockConfiguration
api was returning ObjectLockConfigurationNotFound as error.
- So added the error check to handle ObjectLockConfigurationNotFound error as well
@@ -97,8 +97,10 @@ func GetObjLockInfo(backupLocation *stork_api.BackupLocation) (*common.ObjLockIn
// 2. "MethodNotAllowed"
// Similarly in case of AWS, we need to ignore "NoSuchBucket" so that
// px-backup/stork can create the bucket on behalf user when validation flag is not set.
+ // With cloudian objectstore, we saw the error as "ObjectLockConfigurationNotFound"
if awsErr.Code() == "ObjectLockConfigurationNotFoundError" ||
awsErr.Code() == "MethodNotAllowed" ||
+ awsErr.Code() == "ObjectLockConfigurationNotFound" ||
awsErr.Code() == "NoSuchBucket" {
// for a non-objectlocked bucket we needn't throw error
return objLockInfo, nil
