예제 #1
0
파일: set.py 프로젝트: ogofen/ovirtremote
 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)