Shahar Havivi has uploaded a new change for review.

Change subject: core: unknown host name when listing jobs
......................................................................

core: unknown host name when listing jobs

Change-Id: I3754902fdf9e9bdb5de0f6797901adbae6792ee1
Bug-Url: https://bugzilla.redhat.com/1055710
Signed-off-by: Shahar Havivi <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MigrateVmToServerCommand.java
1 file changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/42/27342/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MigrateVmToServerCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MigrateVmToServerCommand.java
index d5e3601..fc68e3e 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MigrateVmToServerCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MigrateVmToServerCommand.java
@@ -2,7 +2,9 @@
 
 import java.util.Arrays;
 import java.util.List;
+import java.util.Map;
 
+import org.ovirt.engine.core.common.VdcObjectType;
 import org.ovirt.engine.core.common.action.MigrateVmToServerParameters;
 import org.ovirt.engine.core.common.businessentities.VDS;
 import org.ovirt.engine.core.common.businessentities.VM;
@@ -54,4 +56,13 @@
     protected List<Guid> getVdsWhiteList() {
         return Arrays.asList(getVdsDestinationId());
     }
+
+    @Override
+    public Map<String, String> getJobMessageProperties() {
+        jobProperties = super.getJobMessageProperties();
+        if (getVdsDestination() != null) {
+            jobProperties.put(VdcObjectType.VDS.name().toLowerCase(), 
getVdsDestination());
+        }
+        return jobProperties;
+    }
 }


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3754902fdf9e9bdb5de0f6797901adbae6792ee1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Shahar Havivi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to