]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs-shell: extend to_bytes()
authorRishabh Dave <ridave@redhat.com>
Thu, 15 Aug 2019 06:22:12 +0000 (11:52 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 13 Sep 2019 05:15:42 +0000 (10:45 +0530)
commite92b11c5a73b7253eb0befa6a395c167fc963c75
tree8e23ee94deb3dade36f9a292eac2285e3ce32a27
parent79c9d91b9a677f5861171257174280ff32965c24
cephfs-shell: extend to_bytes()

Make to_bytes() handle lists, None as well as other simple types as
well. In case of None, to_bytes() returns None instead of returning
b'None'.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/tools/cephfs/cephfs-shell