[libvirt PATCH] run: fix spawning of daemons

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The "args" array already contains the binary name, so does not need to
be concatenated with "prog".

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 run.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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:
-- 
2.30.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux