From: Sage Weil Date: Mon, 11 Nov 2019 17:05:00 +0000 (-0600) Subject: ceph-daemon: do not fetch daemon detail when removing a cluster X-Git-Tag: v15.1.0~955^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bc4c323163a3ca799d2aa2b1bd4392f6d5d85aaf;p=ceph.git ceph-daemon: do not fetch daemon detail when removing a cluster It's slow and not needed. Signed-off-by: Sage Weil --- diff --git a/src/ceph-daemon/ceph-daemon b/src/ceph-daemon/ceph-daemon index f07f84e82d58..befdd5f4f8e3 100755 --- a/src/ceph-daemon/ceph-daemon +++ b/src/ceph-daemon/ceph-daemon @@ -1467,7 +1467,7 @@ def command_rm_cluster(): 'this command may destroy precious data!') # stop + disable individual daemon units - for d in list_daemons(): + for d in list_daemons(detail=False): if d['fsid'] != args.fsid: continue if d['style'] != 'ceph-daemon:v1':