Daniel Erez has uploaded a new change for review.

Change subject: webadmin: UI-Plugins - fix host name mapping
......................................................................

webadmin: UI-Plugins - fix host name mapping

EntityObject:
* Map 'getvds_name' to 'name' property (Name column).
* Map 'gethost_name' to 'hostname' property (Hostname/IP column).

Change-Id: Id947436ccdf2a5654ca6852f6e57af143dad8b21
Signed-off-by: Daniel Erez <[email protected]>
---
M 
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/20/11420/1

diff --git 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
index 0a29391..e2df351 100644
--- 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
+++ 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
@@ -60,7 +60,8 @@
 
         // Host
         else if (businessEntity instanceof VDS) {
-            obj.setProperty("name", ((VDS) businessEntity).gethost_name()); 
//$NON-NLS-1$
+            obj.setProperty("name", ((VDS) businessEntity).getvds_name()); 
//$NON-NLS-1$
+            obj.setProperty("hostname", ((VDS) 
businessEntity).gethost_name()); //$NON-NLS-1$
         }
 
         // Storage


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

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

Reply via email to