Merge remote-tracking branch 'origin/v3.0'

This commit is contained in:
Adolfo Gómez García 2021-03-01 10:42:34 +01:00
commit f602d641a0

View File

@ -202,7 +202,7 @@ class IPMachinesService(IPServiceBase):
theIP = IPServiceBase.getIp(ip)
theMAC = IPServiceBase.getMac(ip)
if self.storage.readData(theIP) is None:
if self._port > 0 and self.cache.get('port{}'.format(theIP)):
if self._port > 0 and self._skipTimeOnFailure > 0 and self.cache.get('port{}'.format(theIP)):
continue # The check failed not so long ago, skip it...
self.storage.saveData(theIP, theIP)
# Now, check if it is available on port, if required...