For ease of indexing. There's no value in timestamp keys.
Signed-off-by: Dan Mick <dan.mick@redhat.com>
return metadata
def gather_crashinfo(self):
- crashdict = dict()
+ crashlist = list()
errno, crashids, err = self.remote('crash', 'do_ls', '', '')
if errno:
return ''
errno, crashinfo, err = self.remote('crash', 'do_info', cmd, '')
if errno:
continue
- crashdict[crashid] = json.loads(crashinfo)
- return crashdict
+ crashlist.append(json.loads(crashinfo))
+ return crashlist
def compile_report(self):
report = {