From c8dbd0cfbe583eead478a3fe073c1ca52b2bb7bd Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 12 Oct 2017 11:22:11 +0530 Subject: [PATCH] tests: correct usage of hostname in logger in tasks This fix adds correct usage of host.hostname in logger. Fixes: https://pagure.io/freeipa/issue/7190 Signed-off-by: Abhijeet Kasurde Reviewed-By: Rob Crittenden --- ipatests/pytest_plugins/integration/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipatests/pytest_plugins/integration/tasks.py b/ipatests/pytest_plugins/integration/tasks.py index 4bb7dd466..b5e393ab7 100644 --- a/ipatests/pytest_plugins/integration/tasks.py +++ b/ipatests/pytest_plugins/integration/tasks.py @@ -1096,11 +1096,11 @@ def add_a_records_for_hosts_in_master_domain(master): # domain try: verify_host_resolvable(host.hostname) - logger.debug("The host (%s) is resolvable.", host.domain.name) + logger.debug("The host (%s) is resolvable.", host.hostname) except errors.DNSNotARecordError: logger.debug("Hostname (%s) does not have A/AAAA record. Adding " "new one.", - master.hostname) + host.hostname) add_a_record(master, host)