]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph_manager: ensure str for py3 compat
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Tue, 25 Feb 2020 15:45:00 +0000 (16:45 +0100)
committerKefu Chai <kchai@redhat.com>
Wed, 4 Mar 2020 05:09:17 +0000 (13:09 +0800)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
qa/tasks/ceph_manager.py

index 8c33682c093a9d987600d5992cce80fe92442a99..eae0fe0b5032401cf6329d9c1c7efe68a8ec423f 100644 (file)
@@ -302,7 +302,7 @@ class OSDThrasher(Thrasher):
                                         "exp list-pgs failure with status {ret}".
                                         format(ret=proc.exitstatus))
 
-            pgs = proc.stdout.getvalue().split('\n')[:-1]
+            pgs = six.ensure_str(proc.stdout.getvalue()).split('\n')[:-1]
             if len(pgs) == 0:
                 self.log("No PGs found for osd.{osd}".format(osd=exp_osd))
                 return