diff --git a/tests/foreman/ui/test_discoveredhost.py b/tests/foreman/ui/test_discoveredhost.py index 322571f5954..87b62e412e1 100644 --- a/tests/foreman/ui/test_discoveredhost.py +++ b/tests/foreman/ui/test_discoveredhost.py @@ -194,7 +194,7 @@ def test_positive_auto_provision_host_with_rule( discovered_host.build = True discovered_host_name = discovered_host.name - domain_name = provisioning_hostgroup.domain.name + domain_name = provisioning_hostgroup.domain.read().name host_name = f'{discovered_host_name}.{domain_name}' discovery_rule = sat.api.DiscoveryRule(