Ejemplo n.º 1
0
 def _init_vms(self):
     """ Initializes the hypervisor options depending on the openstack connection type. """
     if self.vms_conn == None:
         connection_type = CONF.connection_type
         self.vms_conn = vmsconn.get_vms_connection(connection_type)
         self.vms_conn.configure()
Ejemplo n.º 2
0
 def setUp(self):
     self.vmsconn = vms_conn.get_vms_connection('fake')
Ejemplo n.º 3
0
 def _init_vms(self):
     """ Initializes the hypervisor options depending on the openstack connection type. """
     connection_type = FLAGS.connection_type
     self.vms_conn = vmsconn.get_vms_connection(connection_type)
     self.vms_conn.configure()