Tal Nisan has uploaded a new change for review. Change subject: core: Fix a bug in exporting template with force override ......................................................................
core: Fix a bug in exporting template with force override When exporting a template that already exists in the export domain, the CDA part ignored the force override flag and test the images for existance on the export domain and failed the operation Change-Id: Ida6fbcfe00403d609f76055437a3d105ac8a8d98 Signed-off-by: Tal Nisan <[email protected]> Bug-Url: https://bugzilla.redhat.com/1069151 --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyTemplateCommand.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/44/25144/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyTemplateCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyTemplateCommand.java index 9f711cb..bce37f4 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyTemplateCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveOrCopyTemplateCommand.java @@ -130,7 +130,7 @@ retValue = checkStorageDomain() && checkStorageDomainStatus(StorageDomainStatus.Active) - && checkIfDisksExist(getTemplateDisks()) + && (getParameters().getForceOverride() || checkIfDisksExist(getTemplateDisks())) && checkFreeSpaceOnDestinationDomain(getStorageDomain(), (int) getVmTemplate().getActualDiskSize()); } -- To view, visit http://gerrit.ovirt.org/25144 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ida6fbcfe00403d609f76055437a3d105ac8a8d98 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tal Nisan <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
