From d301c3a5776238f614d80fcc86f5a7ff1ca5c77e Mon Sep 17 00:00:00 2001 From: "avi@robusta.dev" Date: Sun, 19 Jan 2025 10:17:27 +0200 Subject: [PATCH 1/3] we used to ignore lists here --- src/robusta/core/playbooks/playbook_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/robusta/core/playbooks/playbook_utils.py b/src/robusta/core/playbooks/playbook_utils.py index b24fc2475..7ef6aa12a 100644 --- a/src/robusta/core/playbooks/playbook_utils.py +++ b/src/robusta/core/playbooks/playbook_utils.py @@ -33,7 +33,8 @@ def replace_env_vars_values(values: Dict) -> Dict: env_var_value = replace_env_vars_values(value) if env_var_value: values[key] = env_var_value - + elif isinstance(value, list): + values[key] = [replace_env_vars_values(iter) for iter in value] return values From 8e90cd26cf32e4c33d014d4ffd6f0c07955729dd Mon Sep 17 00:00:00 2001 From: "avi@robusta.dev" Date: Sun, 19 Jan 2025 11:09:16 +0200 Subject: [PATCH 2/3] remove change --- src/robusta/core/playbooks/playbook_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/robusta/core/playbooks/playbook_utils.py b/src/robusta/core/playbooks/playbook_utils.py index 7ef6aa12a..b24fc2475 100644 --- a/src/robusta/core/playbooks/playbook_utils.py +++ b/src/robusta/core/playbooks/playbook_utils.py @@ -33,8 +33,7 @@ def replace_env_vars_values(values: Dict) -> Dict: env_var_value = replace_env_vars_values(value) if env_var_value: values[key] = env_var_value - elif isinstance(value, list): - values[key] = [replace_env_vars_values(iter) for iter in value] + return values From 6a6bf68004217469438527e49f5340f7438a8fe2 Mon Sep 17 00:00:00 2001 From: "avi@robusta.dev" Date: Sun, 19 Jan 2025 17:00:43 +0200 Subject: [PATCH 3/3] re-add fix --- src/robusta/core/playbooks/playbook_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/robusta/core/playbooks/playbook_utils.py b/src/robusta/core/playbooks/playbook_utils.py index b24fc2475..7ef6aa12a 100644 --- a/src/robusta/core/playbooks/playbook_utils.py +++ b/src/robusta/core/playbooks/playbook_utils.py @@ -33,7 +33,8 @@ def replace_env_vars_values(values: Dict) -> Dict: env_var_value = replace_env_vars_values(value) if env_var_value: values[key] = env_var_value - + elif isinstance(value, list): + values[key] = [replace_env_vars_values(iter) for iter in value] return values