mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
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:
parent
6dcd0a6cae
commit
1ff990c2a1
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user