Repository: ambari Updated Branches: refs/heads/trunk 9159421b3 -> a56e92474
AMBARI-8473. Ambari public hostname script doesn't work (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a56e9247 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a56e9247 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a56e9247 Branch: refs/heads/trunk Commit: a56e9247449071a96e2d9a0646e4b2d094220e0a Parents: 9159421 Author: Andrew Onishuk <[email protected]> Authored: Fri Nov 28 18:15:24 2014 +0200 Committer: Andrew Onishuk <[email protected]> Committed: Fri Nov 28 18:15:24 2014 +0200 ---------------------------------------------------------------------- ambari-agent/src/main/python/ambari_agent/hostname.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/a56e9247/ambari-agent/src/main/python/ambari_agent/hostname.py ---------------------------------------------------------------------- diff --git a/ambari-agent/src/main/python/ambari_agent/hostname.py b/ambari-agent/src/main/python/ambari_agent/hostname.py index caf7600..437eb84 100644 --- a/ambari-agent/src/main/python/ambari_agent/hostname.py +++ b/ambari-agent/src/main/python/ambari_agent/hostname.py @@ -62,7 +62,7 @@ def public_hostname(config): try: if config.has_option('agent', 'public_hostname_script'): scriptname = config.get('agent', 'public_hostname_script') - output = subprocess.Popen([scriptname], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + output = subprocess.Popen(scriptname, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) out, err = output.communicate() if (0 == output.returncode and 0 != len(out.strip())): cached_public_hostname = out.strip()
