]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: make 'ceph crash ls' output sorted list
authorMykola Golub <mgolub@suse.com>
Sun, 21 Oct 2018 07:17:30 +0000 (10:17 +0300)
committerMykola Golub <mgolub@suse.com>
Sun, 21 Oct 2018 07:44:41 +0000 (10:44 +0300)
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/pybind/mgr/crash/module.py

index 82ebc6dd23be7140d68953aaafdfe70723d808e6..e33bf744302360ad3324a6df2e96e097fd585ba6 100644 (file)
@@ -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):