Skip to content

Commit

Permalink
Fix bad mapping for ownership controls #317
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed May 19, 2023
1 parent 2008d92 commit 09bb373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/services/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,9 @@ service_mapping_functions.push(function(reqParams, obj, tracked_resources){
}
reqParams.cfn['ObjectLockConfiguration'] = obj.data.ObjectLockConfiguration;
reqParams.cfn['OwnershipControls'] = obj.data.OwnershipControls;
if (obj.data.IntelligentTieringConfiguration) {
if (obj.data.OwnershipControls) {
reqParams.cfn['OwnershipControls'] = [];
obj.data.IntelligentTieringConfiguration.forEach(itconfig => {
obj.data.OwnershipControls.forEach(itconfig => {
reqParams.cfn['OwnershipControls'].push({
'Id': itconfig.Id,
'Prefix': (itconfig.Filter ? itconfig.Filter.Prefix : null),
Expand Down

0 comments on commit 09bb373

Please sign in to comment.