mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-15 01:18:22 -07: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,
|
catalog_name, network_name, network_mode,
|
||||||
vm_name, vm_cpus, vm_memory, deploy, poweron)
|
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)
|
module.vca.block_until_completed(task)
|
||||||
|
|
||||||
def delete(module):
|
def delete(module):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue