From efa1e99a193f87a979d664d3c627644d47dbfe20 Mon Sep 17 00:00:00 2001 From: benzekrimaha <144012792+benzekrimaha@users.noreply.github.com> Date: Thu, 24 Oct 2024 08:56:29 +0200 Subject: [PATCH] Update extensions/lifecycle/LifecycleConfigValidator.js Co-authored-by: Walid El Ansari <48165340+Kerkesni@users.noreply.github.com> --- extensions/lifecycle/LifecycleConfigValidator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/lifecycle/LifecycleConfigValidator.js b/extensions/lifecycle/LifecycleConfigValidator.js index 8b40701ec..680e46c97 100644 --- a/extensions/lifecycle/LifecycleConfigValidator.js +++ b/extensions/lifecycle/LifecycleConfigValidator.js @@ -76,7 +76,8 @@ const joiSchema = joi.object({ coldStorageGCTopicPrefix: joi.string().default('cold-gc-req-'), coldStorageStatusTopicPrefix: joi.string().default('cold-status-'), supportedLifecycleRules: joi.array().items( - joi.string().valid(...supportedLifecycleRules)).default(supportedLifecycleRules), + joi.string().valid(...supportedLifecycleRules) + ).default(supportedLifecycleRules), }); function configValidator(backbeatConfig, extConfig) {