ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: AMBARI-4190 Host page shows ip address as "OS NOT SUPPORTED" (ip address from socket.gethostbyname()) (dsen)
Date Fri, 27 Dec 2013 21:33:40 GMT
Updated Branches:
  refs/heads/trunk 33f95a12a -> cfb53ad77


AMBARI-4190 Host page shows ip address as "OS NOT SUPPORTED" (ip address from socket.gethostbyname())
(dsen)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/cfb53ad7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/cfb53ad7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/cfb53ad7

Branch: refs/heads/trunk
Commit: cfb53ad77628d1ef7b32e4146ac6b726b0621bb2
Parents: 33f95a1
Author: Dmitry Sen <dsen@hortonworks.com>
Authored: Fri Dec 27 23:32:39 2013 +0200
Committer: Dmitry Sen <dsen@hortonworks.com>
Committed: Fri Dec 27 23:32:46 2013 +0200

----------------------------------------------------------------------
 ambari-agent/src/main/python/ambari_agent/Facter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/cfb53ad7/ambari-agent/src/main/python/ambari_agent/Facter.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/Facter.py b/ambari-agent/src/main/python/ambari_agent/Facter.py
index cab8cc1..181f370 100644
--- a/ambari-agent/src/main/python/ambari_agent/Facter.py
+++ b/ambari-agent/src/main/python/ambari_agent/Facter.py
@@ -222,7 +222,7 @@ class Facter():
                                     self.DATA_IFCONFIG_OUTPUT)
     if result == '':
       log.warn("Can't get an ip address from {0}".format(self.DATA_IFCONFIG_OUTPUT))
-      return 'OS NOT SUPPORTED'
+      return socket.gethostbyname(socket.gethostname())
     else:
       return result
 


Mime
View raw message