mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
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):
|
||||
|
||||
Reference in New Issue
Block a user