コード例 #1
0
ファイル: manager.py プロジェクト: rmahmood/cobalt
 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()
コード例 #2
0
ファイル: test_vmsconn.py プロジェクト: peterfeiner/cobalt
 def setUp(self):
     self.vmsconn = vms_conn.get_vms_connection('fake')
コード例 #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()