From 713ad3000462e4cec259f7bfd4e086b6ac67a6cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 6 Apr 2021 15:40:53 +0100 Subject: run: fix spawning of daemons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "args" array already contains the binary name, so does not need to be concatenated with "prog". Reviewed-by: Andrea Bolognani Signed-off-by: Daniel P. Berrangé --- run.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'run.in') diff --git a/run.in b/run.in index b778505a33..9aae27a79e 100644 --- a/run.in +++ b/run.in @@ -159,8 +159,8 @@ else: stopped_units.append(unit) - print("Running %s..." % prog) - ret = subprocess.call([prog] + args, env=env) + print("Running '%s'..." % str(" ".join(args))) + ret = subprocess.call(args, env=env) except KeyboardInterrupt: pass finally: -- cgit v1.2.1