Maor Lipchuk has uploaded a new change for review. Change subject: core: Use validation only if Template is not blank ......................................................................
core: Use validation only if Template is not blank The validation of, same DC when creating a VM from a Template, should only be validated when creating a VMs which does not have Blank Template as their based on image. Blank Template is the default Template for every new created VM, and it is hosted on the default Data Center Change-Id: I06a0c911c50f6ff25d9dca358c6a199fa0cdbb59 Signed-off-by: Maor Lipchuk <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/88/30888/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java index 6489dc7..47377d5 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java @@ -454,7 +454,7 @@ return failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_IS_DISABLED); } - if (!isTemplateInValidDc()) { + if (!getVmTemplateId().equals(Guid.Empty) && !isTemplateInValidDc()) { return failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_NOT_EXISTS_IN_CURRENT_DC); } -- To view, visit http://gerrit.ovirt.org/30888 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I06a0c911c50f6ff25d9dca358c6a199fa0cdbb59 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Maor Lipchuk <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
