vstart_runner.py: improve a conditional in _do_run

Before checking for "/" in args[0], check if it's an instance of Raw.
Since Raw instances aren't iterable, the execution would crash here.

Fixes: https://tracker.ceph.com/issues/46100
Signed-off-by: Rishabh Dave <ridave@redhat.com>
This commit is contained in:
Rishabh Dave 2020-06-19 12:10:07 +05:30
parent 6dcd0a6cae
commit 1ff990c2a1

View File

@ -371,7 +371,7 @@ class LocalRemote(object):
'ceph-coverage')]
# Adjust binary path prefix if given a bare program name
if "/" not in args[0]:
if not isinstance(args[0], Raw) and "/" not in args[0]:
# If they asked for a bare binary name, and it exists
# in our built tree, use the one there.
local_bin = os.path.join(BIN_PREFIX, args[0])