Merge "Fix test_show_host_detail to support installation with ironic"

This commit is contained in:
Zuul authored and Gerrit Code Review committed 2023-10-18 12:15:40 +00:00
commit bbe27e9cb7
1 file changed
+3 -1
+3 -1
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: