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 <[email protected]> Authored: Thu May 19 18:55:19 2016 +0800 Committer: Paul Guo <[email protected]> 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"
