Example #1
0
 def __init__(self, cloud, _args, _loop=None):
     self.cloud = cloud
     self.report = ""
     self.args = _args
     self.hosts = Host.objects(cloud=self.cloud, validated=False)
     self.hosts = [
         host for host in self.hosts if Schedule.current_schedule(host=host)
     ]
     self.loop = _loop if _loop else get_running_loop()
Example #2
0
 def __init__(self, _loop=None):
     self.loop = _loop if _loop else get_running_loop()
Example #3
0
 def __init__(self, ip, port=22, loop=None):
     self.ip = ip
     self.port = port
     self.buff = ""
     self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     self.loop = loop if loop else get_running_loop()