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 <akasurde@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Abhijeet Kasurde
2017-10-12 11:22:11 +05:30
committed by Tomas Krizek
parent dea059d158
commit c8dbd0cfbe

View File

@@ -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)