]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-daemon: do not fetch daemon detail when removing a cluster
authorSage Weil <sage@redhat.com>
Mon, 11 Nov 2019 17:05:00 +0000 (11:05 -0600)
committerSage Weil <sage@redhat.com>
Mon, 11 Nov 2019 17:05:00 +0000 (11:05 -0600)
It's slow and not needed.

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon/ceph-daemon

index f07f84e82d5877803c8b151313f9d729bbaee8c2..befdd5f4f8e34d219d640f06a9cbb601c5c6a721 100755 (executable)
@@ -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':