Actually given that we already have /proc/cpuinfo when the report is being created we could just collapse that down in python with something like:
short_list = [] for item in reversed(report['ProcCpuinfo'].split('\n')): short_list.append(item) if item.startswith('processor\t:'): break
short_list = reversed(short_list)
report['ShortProcCpuinfo'] = '\n'.join(short_list)
This still ends up catching Hardware, Revision, and Serial from arm and will display the greatest processor number instead of 0 which might be nice too.
Actually given that we already have /proc/cpuinfo when the report is being created we could just collapse that down in python with something like:
short_list = [] report[ 'ProcCpuinfo' ].split( '\n')): list.append( item) ('processor\ t:'):
for item in reversed(
short_
if item.startswith
break
short_list = reversed( short_list)
report[ 'ShortProcCpuin fo'] = '\n'.join( short_list)
This still ends up catching Hardware, Revision, and Serial from arm and will display the greatest processor number instead of 0 which might be nice too.