Update vca_vapp.py (#19562)

Check result of vApp creation and return module failure if creation task not present
pull/21715/head
Sebastien Lacoste-Seris 8 years ago committed by jctanner
parent aa6585942e
commit 77596951b8

@ -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):

Loading…
Cancel
Save