]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rgw/rgw_multi: do not decode a str
authorKefu Chai <kchai@redhat.com>
Mon, 6 Apr 2020 07:03:22 +0000 (15:03 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 7 Apr 2020 13:51:23 +0000 (21:51 +0800)
commit7202d8a72c749a152a648dcbbcd86387dc988672
tree3fa9887d85acc7dfc14531ed9ee3eaf42ca606d5
parent4a9c43313acbd26d33364a43b2835e561ceb259b
test/rgw/rgw_multi: do not decode a str

`s` comes from `rgwadmin()`, which passes `StringIO` as stdout, so the
the output should an instance of `str` in both Python2 and Python3.
hence there is no need to decode it using UTF-8 codecs again.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/rgw/rgw_multi/multisite.py
src/test/rgw/rgw_multi/tests.py