示例#1
0
文件: tasks.py 项目: zackxue/mist.io
 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}
示例#2
0
 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}
示例#3
0
    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}