Change in ovirt-engine[master]: core: Allow remove snapshot w/o disks (#825809)

mlipchuk at redhat.com mlipchuk at redhat.com
Mon Jul 23 15:10:23 UTC 2012


Maor Lipchuk has submitted this change and it was merged.

Change subject: core: Allow remove snapshot w/o disks (#825809)
......................................................................


core: Allow remove snapshot w/o disks (#825809)

https://bugzilla.redhat.com/825809

Some of the canDoAction validations in RemoveSnapshotCommand implicitly
assume that the snapshot contains disks.
This patch ignores these validations in case the snapshot does not
contain any disks, since they are not valid.

Change-Id: Ie65a93e75419b8b63e6c7e46fd9137f3db7684c4
Signed-off-by: Allon Mureinik <amureini at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveSnapshotCommand.java
A backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/RemoveSnapshotCommandTest.java
2 files changed, 121 insertions(+), 18 deletions(-)

Approvals:
  Allon Mureinik: Verified; Looks good to me, but someone else must approve
  Maor Lipchuk: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/6119
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie65a93e75419b8b63e6c7e46fd9137f3db7684c4
Gerrit-PatchSet: 16
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Ayal Baron <abaron at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>



More information about the Engine-commits mailing list