You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/12/03 12:13:35 UTC
[2/2] ambari git commit: AMBARI-14178. Can not to enable custom
hostnames for agents (aonishuk)
AMBARI-14178. Can not to enable custom hostnames for agents (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6ce00412
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6ce00412
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6ce00412
Branch: refs/heads/branch-2.1
Commit: 6ce0041266e21dc7beb0d511d0b74c7e469f5412
Parents: da745f7
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Dec 3 13:13:28 2015 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Dec 3 13:13:28 2015 +0200
----------------------------------------------------------------------
ambari-agent/src/main/python/ambari_agent/hostname.py | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/6ce00412/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 9cb75d6..87e1e0f 100644
--- a/ambari-agent/src/main/python/ambari_agent/hostname.py
+++ b/ambari-agent/src/main/python/ambari_agent/hostname.py
@@ -69,6 +69,8 @@ def public_hostname(config):
cached_public_hostname = out.strip().lower()
logger.info("Read public hostname '" + cached_public_hostname + "' using agent:public_hostname_script")
return cached_public_hostname
+ else:
+ logger.warn("Execution of '{0}' returned {1}. {2}\n{3}".format(scriptname, output.returncode, err.strip(), out.strip()))
except:
#ignore for now.
trace_info = traceback.format_exc()