Compare commits

...

1 Commits

Author SHA1 Message Date
bbuchanan9 15fa7937ec bugfix: ZENKO-1583 Non-current version transition 2019-03-20 22:40:40 -07:00
1 changed files with 6 additions and 0 deletions

View File

@ -214,6 +214,12 @@ class LifecycleConfiguration {
*/ */
_parseRule(rule) { _parseRule(rule) {
const ruleObj = {}; const ruleObj = {};
if (rule.NoncurrentVersionTransition) {
ruleObj.error = errors.NotImplemented.customizeDescription(
'NoncurrentVersionTransition lifecycle action not yet ' +
'implemented');
return ruleObj;
}
// Either Prefix or Filter must be included, but can be empty string // Either Prefix or Filter must be included, but can be empty string
if ((!rule.Filter && rule.Filter !== '') && if ((!rule.Filter && rule.Filter !== '') &&
(!rule.Prefix && rule.Prefix !== '')) { (!rule.Prefix && rule.Prefix !== '')) {