Use root_logger for verify_host_resolvable()

After discussion with Martin Basti we decided to standardize on root_logger
with hope that one day we will use root_logger.getLogger('module')
to make logging prettier and tunable per module.

https://fedorahosted.org/freeipa/ticket/5710

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Petr Spacek
2016-05-17 17:20:25 +02:00
committed by Martin Basti
parent 0c75df4bf3
commit ec49130b94
8 changed files with 16 additions and 14 deletions

View File

@@ -830,7 +830,7 @@ def enforce_host_existence(host, message=None):
return
try:
verify_host_resolvable(host, root_logger)
verify_host_resolvable(host)
except errors.DNSNotARecordError as ex:
if message is None:
message = "Unknown host %s: %s" % (host, ex)