def execute(self, email, backend_id, machine_id, host): from mist.io import methods res = methods.ping(host) return {'backend_id': backend_id, 'machine_id': machine_id, 'host': host, 'result': res}
def execute(self, email, backend_id, machine_id, host): from mist.io import methods res = methods.ping(host) return {"backend_id": backend_id, "machine_id": machine_id, "host": host, "result": res}