def store_log(self, result_format): """API:存储结果到数据库""" result_format = result_format.strip() Xcache.set_module_result(self.host_ipaddress, self.loadpath, result_format)
def clean_log(self): flag = Xcache.set_module_result(self.host_ipaddress, self.loadpath, "") return flag