diff --git a/pytest_fixtures/component/leapp_client.py b/pytest_fixtures/component/leapp_client.py index d7f58592c70..9245f34cdfd 100644 --- a/pytest_fixtures/component/leapp_client.py +++ b/pytest_fixtures/component/leapp_client.py @@ -166,6 +166,7 @@ def custom_leapp_host(upgrade_path, module_target_sat, module_sca_manifest_org, host_class=ContentHost, deploy_rhel_version=upgrade_path['source_version'], deploy_flavor=settings.flavors.default, + deploy_network_type='ipv6' if settings.server.is_ipv6 else 'ipv4', ) as chost: result = chost.register( module_sca_manifest_org, None, function_leapp_ak.name, module_target_sat diff --git a/tests/foreman/ui/test_errata.py b/tests/foreman/ui/test_errata.py index 2212bca1d47..a75627f47a4 100644 --- a/tests/foreman/ui/test_errata.py +++ b/tests/foreman/ui/test_errata.py @@ -878,6 +878,7 @@ def test_positive_apply_for_all_hosts( workflow='deploy-rhel', host_class=ContentHost, _count=num_hosts, + deploy_network_type='ipv6' if settings.server.is_ipv6 else 'ipv4', ) as hosts: if not isinstance(hosts, list) or len(hosts) != num_hosts: pytest.fail('Failed to provision the expected number of hosts.')