Liron Ar has uploaded a new change for review.

Change subject: core : fix of diskless vm import
......................................................................

core : fix of diskless vm import

When importing diskless vm, the devices/snapshots should be added as
well.

Change-Id: If2d53edfb828de11d6106001a4f9ab7020da4bdd
Signed-off-by: Liron Aravot <lara...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
1 file changed, 3 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/49/16449/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
index f922d05..b64e41c 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
@@ -534,12 +534,11 @@
         try {
             addVmToDb();
             VM vm = getVm();
-            // if there aren't any images- we can just perform the end
+            processImages();
+            // if there aren't tasks - we can just perform the end
             // vm related ops
-            if (vm.getImages().isEmpty()) {
+            if (getReturnValue().getTaskIdList().isEmpty()) {
                 endVmRelatedOps();
-            } else {
-                processImages();
             }
         } catch (RuntimeException e) {
             MacPoolManager.getInstance().freeMacs(macsAdded);


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

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

Reply via email to