From d61b4492cf954bc7cbd2eddc009c93aa19331a85 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 10 Sep 2018 08:57:40 +0200 Subject: [PATCH] VMware: Fix timeout detection in vmware_deploy_ovf module (#45159) Signed-off-by: Harald Albers --- lib/ansible/module_utils/vmware.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/vmware.py b/lib/ansible/module_utils/vmware.py index 79d3627291..b38ede8b88 100644 --- a/lib/ansible/module_utils/vmware.py +++ b/lib/ansible/module_utils/vmware.py @@ -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