Fixing wrong type of input in PLA charm restart policy 58/11758/5
authoraticig <gulsum.atici@canonical.com>
Thu, 17 Mar 2022 11:26:50 +0000 (14:26 +0300)
committerbeierlm <mark.beierl@canonical.com>
Mon, 21 Mar 2022 15:51:50 +0000 (16:51 +0100)
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 <gulsum.atici@canonical.com>
installers/charm/pla/src/charm.py

index 2663763..36a11dc 100755 (executable)
@@ -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