Yaniv Bronhaim has uploaded a new change for review.

Change subject: Add domain url to provisioned vds
......................................................................

Add domain url to provisioned vds

Currently the picked vds name for provisioned host is the deafult foreman's
name which set to the host during first boot (e.g mac12345678). The full
hostname which set to the host after provision includes also domain url.

In this patch we create the initial vds name record with the hostgroup domain
url.

Change-Id: I74e17d69423e1c02028f596ecafb13a21ab3e3ca
Signed-off-by: Yaniv Bronhaim <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/14/35214/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
index 89c2400..58b2d56 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/NewHostModel.java
@@ -75,9 +75,10 @@
 
     private void discoverHostName_SelectedItemChanged() {
         ExternalDiscoveredHost dhost = (ExternalDiscoveredHost) 
getExternalDiscoveredHosts().getSelectedItem();
+        ExternalHostGroup dhg = (ExternalHostGroup) 
getExternalHostGroups().getSelectedItem();
         VDS vds = new VDS();
         if (dhost != null) {
-            vds.setVdsName(dhost.getName());
+            vds.setVdsName(dhost.getName() + "." + dhg.getDomainName()); 
//$NON-NLS-1$
             vds.setHostName(dhost.getIp());
         }
         updateModelFromVds(vds, null, false, null);


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

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

Reply via email to