Liron Aravot has uploaded a new change for review.

Change subject: core: remove unneeded set of parameters member
......................................................................

core: remove unneeded set of parameters member

During ImportVm, the addStorageDomainMapping flag is set without need,
it's ignored during the execute phase of move or copy all image group
command when the parent command is import vm command and can cause to
unneeded deletion of source image mapping during the endWithFailure method.

Change-Id: I55bed0b63faef266cfc30fd8193238ee9dc1163d
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, 0 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/51/12151/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 40efa66..5130e0e 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
@@ -611,7 +611,6 @@
                 p.setVolumeFormat(diskImageBase.getvolume_format());
             }
             p.setParentParameters(getParameters());
-            p.setAddImageDomainMapping(getParameters().isImportAsNewEntity());
             VdcReturnValueBase vdcRetValue = 
Backend.getInstance().runInternalAction(
                     VdcActionType.MoveOrCopyImageGroup,
                     p,


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

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

Reply via email to