コード例 #1
0
 def store_log(self, result_format):
     """API:存储结果到数据库"""
     result_format = result_format.strip()
     Xcache.set_module_result(self.host_ipaddress, self.loadpath,
                              result_format)
コード例 #2
0
 def clean_log(self):
     flag = Xcache.set_module_result(self.host_ipaddress, self.loadpath, "")
     return flag