|
|
@ -376,11 +376,11 @@ EXAMPLES = '''
|
|
|
|
|
|
|
|
|
|
|
|
# Import template
|
|
|
|
# Import template
|
|
|
|
- ovirt_template:
|
|
|
|
- ovirt_template:
|
|
|
|
state: imported
|
|
|
|
state: imported
|
|
|
|
name: mytemplate
|
|
|
|
name: mytemplate
|
|
|
|
export_domain: myexport
|
|
|
|
export_domain: myexport
|
|
|
|
storage_domain: mystorage
|
|
|
|
storage_domain: mystorage
|
|
|
|
cluster: mycluster
|
|
|
|
cluster: mycluster
|
|
|
|
|
|
|
|
|
|
|
|
# Remove template
|
|
|
|
# Remove template
|
|
|
|
- ovirt_template:
|
|
|
|
- ovirt_template:
|
|
|
@ -1022,6 +1022,8 @@ def main():
|
|
|
|
template = templates_module.wait_for_import(
|
|
|
|
template = templates_module.wait_for_import(
|
|
|
|
condition=lambda t: t.status == otypes.TemplateStatus.OK
|
|
|
|
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 = templates_module.create(result_state=otypes.TemplateStatus.OK)
|
|
|
|
ret = {
|
|
|
|
ret = {
|
|
|
|
'changed': True,
|
|
|
|
'changed': True,
|
|
|
|