Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: setup: Use hostname for host address
......................................................................

packaging: setup: Use hostname for host address

And not IP address.

Change-Id: I6a2fc79fe6e57892f0cb9327da1ab8d44b15f29f
Bug-Url: https://bugzilla.redhat.com/1178535
Signed-off-by: Yedidyah Bar David <d...@redhat.com>
---
M src/plugins/ovirt-hosted-engine-setup/engine/add_host.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup 
refs/changes/27/36627/1

diff --git a/src/plugins/ovirt-hosted-engine-setup/engine/add_host.py 
b/src/plugins/ovirt-hosted-engine-setup/engine/add_host.py
index 9730ca0..8a2cae5 100644
--- a/src/plugins/ovirt-hosted-engine-setup/engine/add_host.py
+++ b/src/plugins/ovirt-hosted-engine-setup/engine/add_host.py
@@ -29,6 +29,7 @@
 import tempfile
 import time
 import urllib2
+import socket
 
 
 import ethtool
@@ -570,7 +571,7 @@
                     name=self.environment[
                         ohostedcons.EngineEnv.APP_HOST_NAME
                     ],
-                    address=self._getIPAddress(),
+                    address=socket.gethostname(),
                     reboot_after_installation=False,
                     cluster=engine_api.clusters.get(cluster_name),
                     ssh=self._ovirtsdk_xml.params.SSH(


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a2fc79fe6e57892f0cb9327da1ab8d44b15f29f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: master
Gerrit-Owner: Yedidyah Bar David <d...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to