From 59bebd41eb768653f8bbccab0df46da3eac5c47c Mon Sep 17 00:00:00 2001 From: Ivan Halomi Date: Tue, 2 Jul 2024 13:52:42 +0200 Subject: Fix podman healtcheck when not enabled There was a bug where setting the test command for the health check to 'NONE' would throw an error in podman_worker. This was problematic since K-A uses 'NONE' as an indicator that the health check is not enabled. Closes-Bug: #2071912 Change-Id: I3140bb79eace58b23f579be3da569c502c52c38c Signed-off-by: Ivan Halomi --- ansible/module_utils/kolla_podman_worker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ansible/module_utils') diff --git a/ansible/module_utils/kolla_podman_worker.py b/ansible/module_utils/kolla_podman_worker.py index a5bd9bbcb..69a0de26e 100644 --- a/ansible/module_utils/kolla_podman_worker.py +++ b/ansible/module_utils/kolla_podman_worker.py @@ -104,7 +104,8 @@ class PodmanWorker(ContainerWorker): if healthcheck: healthcheck = self.parse_healthcheck(healthcheck) self.params.pop('healthcheck', None) - args.update(healthcheck) + if healthcheck: + args.update(healthcheck) # getting dimensions into separate parameters dimensions = self.params.get('dimensions') -- cgit v1.2.3