VMware: Fix timeout detection in vmware_deploy_ovf module (#45159)

Signed-off-by: Harald Albers <github@albersweb.de>
pull/45371/merge
Harald Albers 6 years ago committed by Abhijeet Kasurde
parent a9c829bdf2
commit d61b4492cf

@ -67,8 +67,9 @@ def wait_for_vm_ip(content, vm, timeout=300):
facts = dict()
interval = 15
while timeout > 0:
facts = gather_vm_facts(content, vm)
if facts['ipv4'] or facts['ipv6']:
_facts = gather_vm_facts(content, vm)
if _facts['ipv4'] or _facts['ipv6']:
facts = _facts
break
time.sleep(interval)
timeout -= interval

Loading…
Cancel
Save