]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/rbd_fio: unbreak after the conversion from StringIO
authorIlya Dryomov <idryomov@gmail.com>
Wed, 8 Apr 2020 10:24:51 +0000 (12:24 +0200)
committerKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 11:57:00 +0000 (19:57 +0800)
Fix a bad typo in commit db7ae8eff60a ("qa/tasks/rbd_fio: get rid of
StringIO for py3").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit c3f4f1d6604749a51c552b868ef373f321139005)

qa/tasks/rbd_fio.py

index 20f3579bec0776a7c177bc871354342cbfe76f8e..437a527fd2d67252f52adfffaeb81c582a145d15 100644 (file)
@@ -77,7 +77,7 @@ def get_ioengine_package_name(ioengine, remote):
 def run_rbd_map(remote, image, iodepth):
     iodepth = max(iodepth, 128)  # RBD_QUEUE_DEPTH_DEFAULT
     dev = remote.sh(['sudo', 'rbd', 'device', 'map', '-o',
-                     'queue_depth={}'.format(iodepth), image]).rstripg('\n')
+                     'queue_depth={}'.format(iodepth), image]).rstrip('\n')
     teuthology.sudo_write_file(
         remote,
         '/sys/block/{}/queue/nr_requests'.format(os.path.basename(dev)),