Fix use of osapi_compute_extension option in api_samples.

Change: I682fa491dd1435814b73404d91df3387504c3e39 changed the
scope of the osapi_compute_extension but didn't update it's use
in test_api_samples.py. This prevents the tests from being run
individually because the option is no longer in nova.config.

The CONF.import() for osapi_compute_extension now refers to the
proper location: nova.api.openstack.compute.contrib

Change-Id: I5d0f15c41e2d6e118a075872e706e91d6555dd39
This commit is contained in:
Matthew Treinish 2012-12-13 15:08:12 -05:00
parent 421a2094c4
commit 98a7161f62

View File

@ -41,7 +41,8 @@ from nova.tests.integrated import integrated_helpers
CONF = cfg.CONF
CONF.import_opt('allow_resize_to_same_host', 'nova.compute.api')
CONF.import_opt('osapi_compute_extension', 'nova.config')
CONF.import_opt('osapi_compute_extension',
'nova.api.openstack.compute.extensions')
CONF.import_opt('vpn_image_id', 'nova.config')
CONF.import_opt('osapi_compute_link_prefix', 'nova.api.openstack.common')
CONF.import_opt('osapi_glance_link_prefix', 'nova.api.openstack.common')