From ea0b4091b907b0f90d20a882808b42c79afdf9d5 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Mon, 21 Oct 2019 14:02:08 +0200 Subject: [PATCH] Revert "ceph_volume_client: make UTF-8 encoding explicit" This reverts commit ddb8cfa072cc19fb6cb61128b4fe4b8ffe1a1742. Signed-off-by: Nathan Cutler --- src/pybind/ceph_volume_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): """ -- 2.47.3