]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/ragweed.py: open file in text mode
authorKefu Chai <kchai@redhat.com>
Mon, 6 Apr 2020 13:14:36 +0000 (21:14 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 11:56:59 +0000 (19:56 +0800)
commit78746b3fc5aaf4f7bf3a4aae822d8143edab1d95
treed0bc05a13711adb0f799bb33324a74a8a1ac4a55
parentf6580267cd29196d5c10985075c33a40e8f776ce
qa/tasks/ragweed.py: open file in text mode

this file is a template for `boto.cfg` which only contains text, so we
can just open it in text mode, and the file-like object will be passed
to run() as stdin, which is able to consume strings.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3809737fb859ebebe72d635708e0d69676cc5aa6)
qa/tasks/ragweed.py