]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_volume_client: don't convert None to str object 28557/head
authorRishabh Dave <ridave@redhat.com>
Wed, 17 Jul 2019 09:56:42 +0000 (15:26 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 17 Jul 2019 10:37:59 +0000 (16:07 +0530)
Fixes: http://tracker.ceph.com/issues/40800
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/pybind/ceph_volume_client.py

index 67f3a689ad921a3273b4420bcc148c52b92f7082..cfd54a5d172b4f4f209e3116f5554b9e72b8c108 100644 (file)
@@ -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')