Skip to content

Commit

Permalink
Ovirt add template timeout error (#63199)
Browse files Browse the repository at this point in the history
* Ovirt add template timeout error

* correct example syntax
  • Loading branch information
mnecas authored and ansibot committed Oct 8, 2019
1 parent 3b18337 commit 65fd331
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/ansible/modules/cloud/ovirt/ovirt_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@
# Import template
- ovirt_template:
state: imported
name: mytemplate
export_domain: myexport
storage_domain: mystorage
cluster: mycluster
state: imported
name: mytemplate
export_domain: myexport
storage_domain: mystorage
cluster: mycluster
# Remove template
- ovirt_template:
Expand Down Expand Up @@ -1022,6 +1022,8 @@ def main():
template = templates_module.wait_for_import(
condition=lambda t: t.status == otypes.TemplateStatus.OK
)
if template is None:
raise TimeoutError("Image/template '%s' could not be imported. Try again with larger timeout." % template_name)
ret = templates_module.create(result_state=otypes.TemplateStatus.OK)
ret = {
'changed': True,
Expand Down

0 comments on commit 65fd331

Please sign in to comment.