mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
ovirt_templates: wait for OK state when importing (#31634)
This commit is contained in:
committed by
Ryan Brown
parent
1c0dd5406b
commit
ee26ecfcfd
@@ -351,7 +351,10 @@ def main():
|
||||
) if module.params['cluster'] else None,
|
||||
**kwargs
|
||||
)
|
||||
template = templates_module.wait_for_import()
|
||||
# Wait for template to appear in system:
|
||||
template = templates_module.wait_for_import(
|
||||
condition=lambda t: t.status == otypes.TemplateStatus.OK
|
||||
)
|
||||
ret = {
|
||||
'changed': True,
|
||||
'id': template.id,
|
||||
|
||||
Reference in New Issue
Block a user