Merge "Handle fqdn in OCP nodes"
This commit is contained in:
commit
b61f0b6386
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user