Update vca_vapp.py (#19562)

Check result of vApp creation and return module failure if creation task not present
This commit is contained in:
Sebastien Lacoste-Seris 2017-02-21 14:00:07 +00:00 committed by jctanner
parent aa6585942e
commit 77596951b8

View file

@ -189,6 +189,9 @@ def create(module):
catalog_name, network_name, network_mode,
vm_name, vm_cpus, vm_memory, deploy, poweron)
if task is False:
module.fail('Failed to create vapp: ' + vapp_name)
module.vca.block_until_completed(task)
def delete(module):