Merge "Remove the use of os-hosts API that will be deprecated"

This commit is contained in:
Zuul 2019-04-20 04:35:44 +00:00 committed by Gerrit Code Review
commit dce53d7361
1 changed files with 1 additions and 3 deletions

View File

@ -173,9 +173,7 @@ class BaseInfraOptimScenarioTest(manager.ScenarioTest):
:param metrics: The metrics add to resource when using Gnocchi
"""
host_client = self.mgr.hosts_client
all_hosts = host_client.list_hosts()['hosts']
compute_nodes = [x for x in all_hosts if x['service'] == 'compute']
compute_nodes = self.get_compute_nodes_setup()
created_instances = []
for _ in compute_nodes[:CONF.compute.min_compute_nodes]: