ovirt_template remove unnecessary ret (#63382)
This commit is contained in:
parent
0ca682384d
commit
aa0d4ef4ab
1 changed files with 0 additions and 5 deletions
|
@ -1025,11 +1025,6 @@ def main():
|
||||||
if template is None:
|
if template is None:
|
||||||
raise TimeoutError("Image/template '%s' could not be imported. Try again with larger timeout." % template_name)
|
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 = {
|
|
||||||
'changed': True,
|
|
||||||
'id': template.id,
|
|
||||||
'template': get_dict_of_struct(template),
|
|
||||||
}
|
|
||||||
elif state == 'registered':
|
elif state == 'registered':
|
||||||
storage_domains_service = connection.system_service().storage_domains_service()
|
storage_domains_service = connection.system_service().storage_domains_service()
|
||||||
# Find the storage domain with unregistered template:
|
# Find the storage domain with unregistered template:
|
||||||
|
|
Loading…
Reference in a new issue