From 2e4378f7ad0b5165fd6ea5d2d3621b995fbf08ed Mon Sep 17 00:00:00 2001 From: Josiah Olson Date: Sun, 8 Sep 2019 12:57:49 -0400 Subject: [PATCH] add string check for cmd line args --- podman_compose.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index 60ba978..bfae417 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -582,10 +582,11 @@ class Podman: return subprocess.check_output(cmd) def run(self, podman_args, wait=True, sleep=1): - print("podman " + " ".join(podman_args)) + podman_args_str = [str(arg) for arg in podman_args] + print("podman " + " ".join(podman_args_str)) if self.dry_run: return None - cmd = [self.podman_path]+podman_args + cmd = [self.podman_path]+podman_args_str # subprocess.Popen(args, bufsize = 0, executable = None, stdin = None, stdout = None, stderr = None, preexec_fn = None, close_fds = False, shell = False, cwd = None, env = None, universal_newlines = False, startupinfo = None, creationflags = 0) p = subprocess.Popen(cmd) if wait: