Gilad Chaplik has submitted this change and it was merged.
Change subject: core: Fix quota not inherited from VM to Template
......................................................................
core: Fix quota not inherited from VM to Template
When Template was created from a Vm using the REST API the quota of the
disks was not inherited by the new template disks.
The command was looking for quota to assign to the new disk in the
DiskInfoDestinationMap. But as quota is not yet fully supported in REST,
this map is left empty.
Added an 'else' block which uses the old disk quota as a default.
Change-Id: I697082483c706178b8ea47306779dc2b63da5ed6
Bug-Url:
https://bugzilla.redhat.com/913551
Signed-off-by: Ofri Masad <omasad(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmTemplateCommand.java
1 file changed, 12 insertions(+), 12 deletions(-)
Approvals:
Gilad Chaplik: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/12618
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I697082483c706178b8ea47306779dc2b63da5ed6
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: ofri masad <omasad(a)redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck(a)redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik(a)redhat.com>
Gerrit-Reviewer: Laszlo Hornyak <lhornyak(a)redhat.com>
Gerrit-Reviewer: Noam Slomianko <nslomian(a)redhat.com>
Gerrit-Reviewer: ofri masad <omasad(a)redhat.com>