From 20a982b564e725758505df917e437b83505e0fe2 Mon Sep 17 00:00:00 2001 From: Oscar Date: Sun, 1 May 2022 09:48:43 +0100 Subject: [PATCH] Fix play_kube not working when yaml not installed on target (#415) (#419) Signed-off-by: tcmal --- plugins/modules/podman_play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/podman_play.py b/plugins/modules/podman_play.py index f9c5721..56b87db 100644 --- a/plugins/modules/podman_play.py +++ b/plugins/modules/podman_play.py @@ -193,7 +193,7 @@ class PodmanKubeManagement: "No metadata in Kube file!\n%s" % pod) else: with open(self.module.params['kube_file']) as text: - re_pod = NAME.search(text) + re_pod = NAME.search(text.read()) if re_pod: pod_name = re_pod.group(1) if not pod_name: