]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
vstart_runner: split unicode arguments into lists
authorRishabh Dave <ridave@redhat.com>
Fri, 14 Jun 2019 18:14:25 +0000 (23:44 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 20 Jun 2019 05:34:59 +0000 (11:04 +0530)
Split not just string arguments but also unicode arguments into lists.

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

index 27025abf8935d3e32bd2aabc3009861b5067881c..e3589c912e43f9443000933a76d31b0f7b6bef2e 100644 (file)
@@ -237,7 +237,7 @@ class LocalRemote(object):
     def _perform_checks_and_return_list_of_args(self, args, omit_sudo):
         # Since Python's shell simulation can only work when commands are
         # provided as a list of argumensts...
-        if isinstance(args, str):
+        if isinstance(args, str) or isinstance(args, unicode):
             args = args.split()
 
         # We'll let sudo be a part of command even omit flag says otherwise in