]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "ceph_volume_client: make UTF-8 encoding explicit" 31017/head
authorNathan Cutler <ncutler@suse.com>
Mon, 21 Oct 2019 12:02:08 +0000 (14:02 +0200)
committerNathan Cutler <ncutler@suse.com>
Mon, 21 Oct 2019 12:02:08 +0000 (14:02 +0200)
This reverts commit ddb8cfa072cc19fb6cb61128b4fe4b8ffe1a1742.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/pybind/ceph_volume_client.py

index 32c73c3dbc8707483b4228779142a6fa4a0331ad..3ff99066ec8d333e877f2c5477286f756275648d 100644 (file)
@@ -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):
     """