[~] improve timeout

This commit is contained in:
Maxim Khomutov 2024-07-18 12:07:03 +03:00
parent 1254c08db2
commit e504663d38

View File

@ -333,9 +333,9 @@ class VMKer:
ipv4, ipv6 = self._get_vm_ip(vm) ipv4, ipv6 = self._get_vm_ip(vm)
if len(ipv4) > 0: if len(ipv4) > 0:
break break
time.sleep(0.3) time.sleep(1)
t += 1 t += 1
if t > 50: if t > 120:
return logger.error("No IPv4 address found.") return logger.error("No IPv4 address found.")
logger.info(f"IPv4: {', '.join(ipv4)}") logger.info(f"IPv4: {', '.join(ipv4)}")