mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add debug logging when ip_to_host fails
This commit is contained in:
parent
45696e622b
commit
95a6f075cb
1 changed files with 2 additions and 1 deletions
|
@ -218,7 +218,8 @@ def ip_to_host(ip):
|
|||
'''
|
||||
try:
|
||||
hostname, aliaslist, ipaddrlist = socket.gethostbyaddr(ip)
|
||||
except Exception:
|
||||
except Exception as exc:
|
||||
log.debug('salt.utils.network.ip_to_host(%r) failed: %s', ip, exc)
|
||||
hostname = None
|
||||
return hostname
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue