Maor Lipchuk has uploaded a new change for review.

Change subject: <core | restapi | tools | history | engine | userportal | 
webadmin>: short summary under 50 chars
......................................................................

<core | restapi | tools | history | engine | userportal | webadmin>: short 
summary under 50 chars

Longer description using lines' length under 72 chars.

With multiple paragraphs if necessary.

Change-Id: I376039f0121cb5fb546ab9a554b0afc5c2c3e75b
Bug-Url: https://bugzilla.redhat.com/??????
Signed-off-by: Maor Lipchuk <mlipc...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/TryBackToAllSnapshotsOfVmCommand.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/12/42312/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/TryBackToAllSnapshotsOfVmCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/TryBackToAllSnapshotsOfVmCommand.java
index 5c666e4..0ad4899 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/TryBackToAllSnapshotsOfVmCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/TryBackToAllSnapshotsOfVmCommand.java
@@ -281,7 +281,7 @@
         List<DiskImage> excludedImages = new ArrayList<>();
 
         for (DiskImage image : images) {
-            if (image.isStorageTypeSupportsSnapshot() && 
image.getVmSnapshotId().equals(previousActiveSnapshotId)) {
+            if (image.getDiskStorageType().isSupportsSnapshot() && 
image.getVmSnapshotId().equals(previousActiveSnapshotId)) {
                 // Image is already active, hence only update snapshot ID.
                 getImageDao().updateImageVmSnapshotId(image.getImageId(), 
newActiveSnapshotId);
                 excludedImages.add(image);


-- 
To view, visit https://gerrit.ovirt.org/42312
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I376039f0121cb5fb546ab9a554b0afc5c2c3e75b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to