]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MonClient: interpret numeric mon target name as rank
authorSage Weil <sage@redhat.com>
Mon, 30 Sep 2019 15:58:40 +0000 (10:58 -0500)
committerSage Weil <sage@redhat.com>
Fri, 4 Oct 2019 14:07:03 +0000 (09:07 -0500)
commit62f33d5978bc7a99b22f8a2a90c546899e60f386
tree3390c5078a838f463322cae9a3a8c68b0eb53900
parent6f35d2835268eade059535b62378d6d407ef9e87
mon/MonClient: interpret numeric mon target name as rank

This allows us to behave when a rank is passed to mon_command(..., target=),
which will call rados_mon_command_target() -> MonClient::start_mon_command
with a (string) target name.

We could make an integer variant of rados_mon_command_target, and do the
int vs string differentiation in python, but this is much easier.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc