From 774c0e67978653b166bc1b75175f819ebaec6da4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 10 Sep 2019 13:50:50 -0500 Subject: [PATCH] ceph: make 'ceph tell mgr.*' send to the active mgr We can only send tell commands to the active mgr. Signed-off-by: Sage Weil --- src/ceph.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ceph.in b/src/ceph.in index fa6514418c061..fac4ce3f06e99 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -211,8 +211,9 @@ def mgrids(): d = json.loads(outbuf.decode('utf-8')) l = [] l.append(d['active_name']) - for i in d['standbys']: - l.append(i['name']) + # we can only send tell commands to the active mgr + #for i in d['standbys']: + # l.append(i['name']) return l -- 2.39.5