Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webadmin: Fix creating of a new template #360

Merged
merged 1 commit into from
May 10, 2022

Conversation

ljelinkova
Copy link
Contributor

When creating a new template, the initTemplate() method is called after the list of base templates is loaded.
However, if there are no templates other than the Blank template, the list is not loaded and the initTemplate()
method is never called. As a result, the builders from VM to UnitVmModel are never called and the UnitVmModel
is not initialized properly. The attempt to create a new template fails.
image
image

This patch calls the initTemplate() method also for the cases when there are no base templates available and the Blank template is the only template present.

When creating a new template, the initTemplate() method
is called after the list of base templates is loaded.
However, if there are no templates other than the Blank
template, the list is not loaded and the initTemplate()
method is never called. As a result, the builders from
VM to UnitVmModel are never called and the UnitVmModel
is not initialized properly. The attempt to create a new
template fails.

This patch calls the initTemplate() method also for the cases
when there are no base templates available and the Blank template
is the only template present.
@ljelinkova ljelinkova requested a review from ahadas May 10, 2022 13:45
@ljelinkova ljelinkova requested a review from sgratch as a code owner May 10, 2022 13:45
@ahadas ahadas added this to the ovirt-4.5.0-1 milestone May 10, 2022
@ahadas ahadas merged commit afb7ae1 into oVirt:ovirt-engine-4.5.0.z May 10, 2022
@ljelinkova ljelinkova deleted the ovirt-engine-4.5.0.z branch May 17, 2022 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants