You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ds...@apache.org on 2015/01/27 16:27:04 UTC
ambari git commit: AMBARI-8462 Ambari agent should catch all
exceptions which raised during bootstrap agent process and traceback they
only if it "-v" was setup (Additional patch) (dsen)
Repository: ambari
Updated Branches:
refs/heads/trunk 77ad3fec5 -> 085079036
AMBARI-8462 Ambari agent should catch all exceptions which raised during bootstrap agent process and traceback they only if it "-v" was setup (Additional patch) (dsen)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/08507903
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/08507903
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/08507903
Branch: refs/heads/trunk
Commit: 085079036e460a677ac4d83e8265e526ac0db5b2
Parents: 77ad3fe
Author: Dmytro Sen <ds...@apache.org>
Authored: Tue Jan 27 17:26:31 2015 +0200
Committer: Dmytro Sen <ds...@apache.org>
Committed: Tue Jan 27 17:26:31 2015 +0200
----------------------------------------------------------------------
ambari-server/src/main/python/setupAgent.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/08507903/ambari-server/src/main/python/setupAgent.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/setupAgent.py b/ambari-server/src/main/python/setupAgent.py
index 8f9c48f..8216c98 100755
--- a/ambari-server/src/main/python/setupAgent.py
+++ b/ambari-server/src/main/python/setupAgent.py
@@ -77,7 +77,7 @@ def runAgent(passPhrase, expected_hostname, user_run_as, verbose):
vo = ""
if verbose:
vo = " -v"
- cmd = "su - {0} -c '/usr/sbin/ambari-agent restart --expected-hostname={1} {2}'".format(user_run_as, expected_hostname, vo)
+ cmd = "su - %1s -c '/usr/sbin/ambari-agent restart --expected-hostname=%2s %3s'" % (user_run_as, expected_hostname, vo)
agent_retcode = subprocess.call(cmd, shell=True)
for i in range(3):
time.sleep(1)