Maor Lipchuk has uploaded a new change for review. Change subject: core: Remove redundant validation ......................................................................
core: Remove redundant validation There is no need for validating if the VM is in preview mode or not when removing it. Signed-off-by: Maor Lipchuk <[email protected]> Change-Id: I9c43440ef999bdbb573f6038a2f6b5d01411f2ea --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmCommand.java 1 file changed, 0 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/76/25176/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmCommand.java index 962f456..699b374 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmCommand.java @@ -201,10 +201,6 @@ return false; } - if (getParameters().getForce() && !validate(snapshotsValidator.vmNotInPreview(getVmId()))) { - return false; - } - if (!validate(new StoragePoolValidator(getStoragePool()).isUp())) { return false; } -- To view, visit http://gerrit.ovirt.org/25176 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9c43440ef999bdbb573f6038a2f6b5d01411f2ea 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
