Skip to content

Commit

Permalink
Merge pull request #339 from dnicolson/patch-1
Browse files Browse the repository at this point in the history
Fix S3 prefix
  • Loading branch information
iann0036 committed Jul 19, 2023
2 parents 1242361 + 71ee582 commit abea738
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/services/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,6 @@ service_mapping_functions.push(function(reqParams, obj, tracked_resources){
var lifecyclerule = {
'AbortIncompleteMultipartUpload': rule.AbortIncompleteMultipartUpload,
'Id': rule.ID,
'Prefix': rule.Prefix,
'Status': rule.Status
};

Expand Down Expand Up @@ -888,6 +887,10 @@ service_mapping_functions.push(function(reqParams, obj, tracked_resources){
}
}

if (rule.Filter && rule.Filter.Prefix) {
lifecyclerule['Prefix'] = rule.Filter.Prefix;
}

if (rule.Transitions) {
lifecyclerule['Transitions'] = [];
rule.Transitions.forEach(transition => {
Expand Down

0 comments on commit abea738

Please sign in to comment.