|
|
|
@ -46,7 +46,7 @@ def resolve_target_host_name(host): |
|
|
|
|
host, host_name)) |
|
|
|
|
except (socket.gaierror, socket.herror) as e: |
|
|
|
|
log.warning("Could not derive host_name for {}" |
|
|
|
|
", $host_name will be empty. Error is: {}".format(host, e)) |
|
|
|
|
", $host_name will be empty. Error is: {}".format(host, e)) |
|
|
|
|
# in case of error provide empty value |
|
|
|
|
host_name = '' |
|
|
|
|
return host_name |
|
|
|
@ -60,7 +60,7 @@ def resolve_target_fqdn(host): |
|
|
|
|
host, host_fqdn)) |
|
|
|
|
except socket.herror as e: |
|
|
|
|
log.warning("Could not derive host_fqdn for {}" |
|
|
|
|
", $host_fqdn will be empty. Error is: {}".format(host, e)) |
|
|
|
|
", $host_fqdn will be empty. Error is: {}".format(host, e)) |
|
|
|
|
# in case of error provide empty value |
|
|
|
|
host_fqdn = '' |
|
|
|
|
return host_fqdn |
|
|
|
|