Handle fqdn in OCP nodes
Follow up of [1], we also need to handle OCP node names including fqdns. [1] https://review.opendev.org/c/x/whitebox-neutron-tempest-plugin/+/924394 Change-Id: Ia53caaa7d9d26dd45acbcd6e5f5d9ef49726fc74
This commit is contained in:
parent
17351a7865
commit
5daba8e6ba
@ -216,7 +216,7 @@ class BaseTempestWhiteboxTestCase(base.BaseTempestTestCase):
|
||||
if address['type'] == 'InternalIP':
|
||||
ocp_main_ip = address['address']
|
||||
if address['type'] == 'Hostname':
|
||||
ocp_hostname = address['address']
|
||||
ocp_hostname = address['address'].split('.')[0]
|
||||
if ocp_main_ip and ocp_hostname == host.split('.')[0]:
|
||||
LOG.debug('IP address found for %s: %s', host, ocp_main_ip)
|
||||
return ocp_main_ip
|
||||
|
Loading…
Reference in New Issue
Block a user