Merge "Handle fqdn in OCP nodes"

This commit is contained in:
Zuul 2024-07-25 11:33:58 +00:00 committed by Gerrit Code Review
commit b61f0b6386

View File

@ -216,7 +216,7 @@ class BaseTempestWhiteboxTestCase(base.BaseTempestTestCase):
if address['type'] == 'InternalIP': if address['type'] == 'InternalIP':
ocp_main_ip = address['address'] ocp_main_ip = address['address']
if address['type'] == 'Hostname': if address['type'] == 'Hostname':
ocp_hostname = address['address'] ocp_hostname = address['address'].split('.')[0]
if ocp_main_ip and ocp_hostname == host.split('.')[0]: if ocp_main_ip and ocp_hostname == host.split('.')[0]:
LOG.debug('IP address found for %s: %s', host, ocp_main_ip) LOG.debug('IP address found for %s: %s', host, ocp_main_ip)
return ocp_main_ip return ocp_main_ip