Merge "Fix test_show_host_detail to support installation with ironic"

This commit is contained in:
Zuul 2023-10-18 12:15:40 +00:00 committed by Gerrit Code Review
commit bbe27e9cb7

View File

@ -68,7 +68,9 @@ class HostsAdminTestJSON(base.BaseV2ComputeAdminTest):
"""Showing nova host details"""
hosts = self.client.list_hosts()['hosts']
hosts = [host for host in hosts if host['service'] == 'compute']
hosts = [host for host in hosts if (
host['service'] == 'compute' and
not host['host_name'].endswith('-ironic'))]
self.assertNotEmpty(hosts)
for host in hosts: