From 0c318ed2b21051b780a6277dfbd6435faf7d5ef0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 23 Oct 2019 10:30:40 -0500 Subject: [PATCH] ceph-daemon: fix 'ls' This broke when we added the crash service. Signed-off-by: Sage Weil --- src/ceph-daemon | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ceph-daemon b/src/ceph-daemon index e3426ca5447..e74ce9146f1 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -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)) -- 2.39.5