From 0ccac0f2b922736e4139c351fb20bfffccbeaf13 Mon Sep 17 00:00:00 2001 From: aticig Date: Thu, 17 Mar 2022 14:26:50 +0300 Subject: [PATCH] Fixing wrong type of input in PLA charm restart policy This fix solves the problem that is "pod is not restarted, although charm mongodb secret config has changed". Change-Id: Ifbb8a5e0e986563f42739db7b5669f933be6c5aa Signed-off-by: aticig --- installers/charm/pla/src/charm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/charm/pla/src/charm.py b/installers/charm/pla/src/charm.py index 2663763b..36a11dcb 100755 --- a/installers/charm/pla/src/charm.py +++ b/installers/charm/pla/src/charm.py @@ -160,7 +160,7 @@ class PlaCharm(CharmedOsmBase): # Add Pod restart policy restart_policy = PodRestartPolicy() - restart_policy.add_secrets(secret_names=(mongodb_secret_name)) + restart_policy.add_secrets(secret_names=(mongodb_secret_name,)) pod_spec_builder.set_restart_policy(restart_policy) # Add container to pod spec -- 2.17.1