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 2014/04/17 22:38:00 UTC

git commit: AMBARI-5502. Hdfs service check fails on ubuntu (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/trunk da88fb5fa -> cbb4955ce


AMBARI-5502. Hdfs service check fails on ubuntu (aonishuk)


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

Branch: refs/heads/trunk
Commit: cbb4955cea41d45d79d3623c6dd92408157fdee4
Parents: da88fb5
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Apr 17 23:37:47 2014 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Apr 17 23:37:47 2014 +0300

----------------------------------------------------------------------
 .../libraries/functions/get_unique_id_and_date.py                  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/cbb4955c/ambari-agent/src/main/python/resource_management/libraries/functions/get_unique_id_and_date.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/resource_management/libraries/functions/get_unique_id_and_date.py b/ambari-agent/src/main/python/resource_management/libraries/functions/get_unique_id_and_date.py
index cbad03b..a79a1e5 100644
--- a/ambari-agent/src/main/python/resource_management/libraries/functions/get_unique_id_and_date.py
+++ b/ambari-agent/src/main/python/resource_management/libraries/functions/get_unique_id_and_date.py
@@ -25,7 +25,7 @@ import datetime
 from resource_management.core import shell
 
 def get_unique_id_and_date():
-    out = shell.checked_call("hostid")[1]
+    out = shell.checked_call("hostid")[1].split('\n')[-1] # bugfix: take the lastline (stdin is not tty part cut)
     id = out.strip()
 
     now = datetime.datetime.now()