]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: upgrade command arguments checks in vstart_runner.py 28198/head
authorRishabh Dave <ridave@redhat.com>
Tue, 21 May 2019 15:29:23 +0000 (17:29 +0200)
committerRishabh Dave <ridave@redhat.com>
Fri, 7 Jun 2019 07:50:06 +0000 (13:20 +0530)
Exempt run.Raw from checks in vstart_runner.py as most of them are
meant for strings.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/vstart_runner.py

index 27025abf8935d3e32bd2aabc3009861b5067881c..4e2488166b421faad8c75b28cd9e4f4e8abca0c1 100644 (file)
@@ -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)