hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject incubator-hawq git commit: HAWQ-746. ssh_utils.py:addHostNameAlternatives() should not use short hostname
Date Fri, 20 May 2016 02:17:18 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master bb9d2f178 -> 50d55331b


HAWQ-746. ssh_utils.py:addHostNameAlternatives() should not use short hostname


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/50d55331
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/50d55331
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/50d55331

Branch: refs/heads/master
Commit: 50d55331b61a88b25713b8abbca01d7c4fbf6755
Parents: bb9d2f1
Author: Paul Guo <paulguo@gmail.com>
Authored: Thu May 19 18:55:19 2016 +0800
Committer: Paul Guo <paulguo@gmail.com>
Committed: Thu May 19 18:55:19 2016 +0800

----------------------------------------------------------------------
 tools/bin/gppylib/util/ssh_utils.py | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/50d55331/tools/bin/gppylib/util/ssh_utils.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/util/ssh_utils.py b/tools/bin/gppylib/util/ssh_utils.py
index 853c0f5..f42a5d3 100644
--- a/tools/bin/gppylib/util/ssh_utils.py
+++ b/tools/bin/gppylib/util/ssh_utils.py
@@ -69,14 +69,10 @@ class HostList():
         for host in self.list:
             try:
                 fqdn = socket.getfqdn(host)
-                hostname = fqdn.partition('.')[0]
                 ''' Add fully qualified domain names '''
                 if fqdn not in self.list:
                     self.list.append(fqdn)
 
-                ''' Add short names '''
-                if hostname not in self.list:
-                    self.list.append(hostname)
             except socket.error, e:
                 print "Error while including hostname alternatives"
 


Mime
View raw message