Merge "Make api_samples tests use simple cell environment"

This commit is contained in:
Jenkins 2017-01-24 23:33:13 +00:00 committed by Gerrit Code Review
commit efcd9bcb37

View File

@ -347,7 +347,7 @@ class TestCase(testtools.TestCase):
svc = self.useFixture(
nova_fixtures.ServiceFixture(name, host, **kwargs))
if name == 'compute':
if name == 'compute' and self.USES_DB:
ctxt = context.get_context()
cell = self.cell_mappings[kwargs.pop('cell', CELL1_NAME)]
hm = objects.HostMapping(context=ctxt,