From: Nathan Cutler Date: Mon, 21 Oct 2019 12:02:08 +0000 (+0200) Subject: Revert "ceph_volume_client: make UTF-8 encoding explicit" X-Git-Tag: v13.2.7~31^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31017%2Fhead;p=ceph.git Revert "ceph_volume_client: make UTF-8 encoding explicit" This reverts commit ddb8cfa072cc19fb6cb61128b4fe4b8ffe1a1742. Signed-off-by: Nathan Cutler --- diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index 32c73c3dbc87..3ff99066ec8d 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -27,9 +27,9 @@ def to_bytes(param): Helper method that returns byte representation of the given parameter. ''' if isinstance(param, str): - return param.encode('utf-8') + return param.encode() else: - return str(param).encode('utf-8') + return str(param).encode() class RadosError(Exception): """