Signed-off-by: Sage Weil <sage@redhat.com>
return self.remote(plugin_name, 'predict_all_devices')
except:
return -1, '', 'unable to invoke diskprediction local or remote plugin'
+
+ def gather_device_report(self):
+ # write me
+ return {}
r.append('device')
return r
+ def gather_device_report(self):
+ try:
+ return self.remote('devicehealth', 'gather_device_report')
+ except:
+ return None
+
def compile_report(self):
report = {
'leaderboard': False,
if self.channel_crash:
report['crashes'] = self.gather_crashinfo()
+ if self.channel_devices:
+ report['devices'] = self.gather_device_report()
+
return report
def send(self, report):