Exemplo n.º 1
0
 def ini_host(self, host, os_dest, os_info):
     password = self.collect_params(host.get_name(),
                                    'hypervisors')['password']
     remote_host = Host(host.get_address(), password)
     if not remote_host.has_file(os_info['kernel']):
         remote_host.wget_file(os_dest['kernel'], os_info['kernel'])
         sleep(5)
         remote_host.wget_file(os_dest['initrd'], os_info['initrd'])
         sleep(5)