diff --git a/whitebox_neutron_tempest_plugin/tests/scenario/base.py b/whitebox_neutron_tempest_plugin/tests/scenario/base.py index 299e5db..b82bf8a 100644 --- a/whitebox_neutron_tempest_plugin/tests/scenario/base.py +++ b/whitebox_neutron_tempest_plugin/tests/scenario/base.py @@ -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