mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update vca_vapp.py (#19562)
Check result of vApp creation and return module failure if creation task not present
This commit is contained in:
parent
aa6585942e
commit
77596951b8
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue