From 82abf02370fbf24061af0b06eb92a796e5866062 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Sun, 21 Oct 2018 10:17:30 +0300 Subject: [PATCH] pybind/mgr: make 'ceph crash ls' output sorted list Signed-off-by: Mykola Golub --- src/pybind/mgr/crash/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/crash/module.py b/src/pybind/mgr/crash/module.py index 82ebc6dd23be7..e33bf74430236 100644 --- a/src/pybind/mgr/crash/module.py +++ b/src/pybind/mgr/crash/module.py @@ -81,6 +81,7 @@ class Module(MgrModule): keys = [] for key in six.iterkeys(self.get_store_prefix('crash/')): keys.append(key.replace('crash/', '')) + keys.sort() return 0, '\n'.join(keys), '' def do_rm(self, cmd, inbuf): -- 2.39.5