mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
Merge PR #28198 into master
* refs/pull/28198/head: qa/tasks: upgrade command arguments checks in vstart_runner.py Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
85470cd171
@ -254,6 +254,9 @@ class LocalRemote(object):
|
||||
errmsg = "Don't surround arguments commands by quotes if it " + \
|
||||
"contains spaces.\nargs - %s" % (args)
|
||||
for arg in args:
|
||||
if isinstance(arg, Raw):
|
||||
continue
|
||||
|
||||
if (arg[0] in ['"', "'"] or arg[-1] in ['"', "'"]) and \
|
||||
(arg.find(' ') != -1 and 0 < arg.find(' ') < len(arg) - 1):
|
||||
raise RuntimeError(errmsg)
|
||||
|
Loading…
Reference in New Issue
Block a user