Signed-off-by: Sage Weil <sage@redhat.com>
self._refresh_health_checks()
return 0, '', ''
+ def ls(self):
+ if not self.crashes:
+ self._load_crashes()
+ return self.do_ls({'prefix': 'crash ls'}, '')
+
def do_ls(self, cmd, inbuf):
if cmd['prefix'] == 'crash ls':
r = self.crashes.values()
def gather_crashinfo(self):
crashlist = list()
- errno, crashids, err = self.remote('crash', 'do_ls', '', '')
+ errno, crashids, err = self.remote('crash', 'ls')
if errno:
return ''
for crashid in crashids.split():