1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

Added log if could not resolve ip on PhisicalMachines multi

This commit is contained in:
Adolfo Gómez García 2021-03-25 12:37:43 +01:00
parent b8494f51ac
commit 2aee4e9417

View File

@ -41,6 +41,7 @@ from uds.core import services
from uds.core.util.state import State
from uds.core.util.auto_attributes import AutoAttributes
from uds.core.util import net
from uds.core.util import log
# Not imported at runtime, just for type checking
if typing.TYPE_CHECKING:
@ -80,7 +81,7 @@ class IPMachineDeployed(services.UserDeployment, AutoAttributes):
res = dns.resolver.resolve(ip)
ip = res[0].address
except Exception:
pass
self.service().parent().doLog(log.WARN, f'User service could not resolve Name {ip}.')
return ip