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()
def setUp(self): self.vmsconn = vms_conn.get_vms_connection('fake')
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()