Merge "Optimize hypervisor API calls"

This commit is contained in:
Zuul
2019-06-14 02:28:51 +00:00
committed by Gerrit Code Review
7 changed files with 37 additions and 28 deletions

View File

@@ -123,7 +123,6 @@ class TestNovaHelper(base.TestCase):
hypervisor = self.fake_hypervisor(hypervisor_id, hypervisor_name)
self.fake_nova_hypervisor_list(
nova_util,
fake_find=hypervisor,
fake_list=[hypervisor])
nova_util.nova.hypervisors.search.return_value = [hypervisor]
# verify that the compute node can be obtained normally by name