mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
VMware: Fix timeout detection in vmware_deploy_ovf module (#45159)
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
a9c829bdf2
commit
d61b4492cf
1 changed files with 3 additions and 2 deletions
|
@ -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…
Reference in a new issue