From: aticig Date: Thu, 17 Mar 2022 11:26:50 +0000 (+0300) Subject: Fixing wrong type of input in PLA charm restart policy X-Git-Tag: v12.0.0rc1~25 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0ccac0f2b922736e4139c351fb20bfffccbeaf13;p=osm%2Fdevops.git 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 --- 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