]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/rbd: update NamedTemporaryFile usage for python3
authorIlya Dryomov <idryomov@gmail.com>
Tue, 28 Apr 2020 21:22:17 +0000 (23:22 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 28 Apr 2020 21:22:17 +0000 (23:22 +0200)
commitaba9910388cce7c03aa90726b5de1263298ac8ec
tree2213ddc73bf52bbb7da6dcb106b162ec34b2483c
parent97939567c556421c3dd479522bd9899317b19129
qa/tasks/rbd: update NamedTemporaryFile usage for python3

- open the file in text mode to avoid 'bytes' objects

- 'bufsize' is now spelled 'buffering' and switching buffering off
  with 'buffering=0' is only allowed in binary mode.  As we need the
  file to be either in the page cache or on disk before we copy it
  to the remote, call flush().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/tasks/rbd.py