]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-daemon: fix 'ls'
authorSage Weil <sage@redhat.com>
Wed, 23 Oct 2019 15:30:40 +0000 (10:30 -0500)
committerSage Weil <sage@redhat.com>
Wed, 23 Oct 2019 19:45:34 +0000 (14:45 -0500)
This broke when we added the crash service.

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

index e3426ca5447159fb39ca233bfad7b3ef534cd4cd..e74ce9146f1462c11663d9ff3825bc65b8a534c7 100755 (executable)
@@ -1191,7 +1191,10 @@ def command_ls():
             elif is_fsid(i):
                 fsid = i
                 for j in os.listdir(os.path.join(args.data_dir, i)):
-                    (daemon_type, daemon_id) = j.split('.', 1)
+                    bits = j.split('.')
+                    if len(bits) != 2:
+                        continue
+                    (daemon_type, daemon_id) = bits
                     (enabled, active) = check_unit(get_unit_name(fsid,
                                                                  daemon_type,
                                                                  daemon_id))