mirror of
https://github.com/ceph/ceph
synced 2025-01-02 17:12:31 +00:00
ceph_volume_client: don't convert None to str object
Fixes: http://tracker.ceph.com/issues/40800 Signed-off-by: Rishabh Dave <ridave@redhat.com>
This commit is contained in:
parent
0d5c3a7de6
commit
f290322f90
@ -28,6 +28,8 @@ def to_bytes(param):
|
||||
'''
|
||||
if isinstance(param, str):
|
||||
return param.encode('utf-8')
|
||||
elif param is None:
|
||||
return param
|
||||
else:
|
||||
return str(param).encode('utf-8')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user