mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 11:52:20 +00:00
run: fix spawning of daemons
The "args" array already contains the binary name, so does not need to be concatenated with "prog". Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
8c1a89999a
commit
713ad30004
4
run.in
4
run.in
@ -159,8 +159,8 @@ else:
|
|||||||
|
|
||||||
stopped_units.append(unit)
|
stopped_units.append(unit)
|
||||||
|
|
||||||
print("Running %s..." % prog)
|
print("Running '%s'..." % str(" ".join(args)))
|
||||||
ret = subprocess.call([prog] + args, env=env)
|
ret = subprocess.call(args, env=env)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user