]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/ceph_argparse.py: pass a str not a list to mon_command()
authorKefu Chai <kchai@redhat.com>
Tue, 1 Sep 2020 08:10:54 +0000 (16:10 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 16:30:54 +0000 (00:30 +0800)
commitb59dde535a0a57fa923f289303606356c5225cca
treee69bf5439503248ec40802e091b147e6bf78ebfd
parent2d10914d5aaa60682a56ec27692aa4dfd6d901b9
pybind/ceph_argparse.py: pass a str not a list to mon_command()

no need to construct a list as the cmd. and more importantly,

the document of Rados.mon_command() reads:

  Rados.mon_command(self, cmd, inbuf, timeout=0, target=None):
  ...
  :param cmd: JSON formatted string.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/ceph_argparse.py
src/pybind/rados/rados.pyx