Repository: ambari
Updated Branches:
  refs/heads/trunk 771c9c011 -> 0e8c966d2


AMBARI-19743. Agent registration fails with non-root agent user (Attila 
Doroszlai via smohanty)


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

Branch: refs/heads/trunk
Commit: 0e8c966d20b895442ea461ce488dcb9aae4d8638
Parents: 771c9c0
Author: Sumit Mohanty <smoha...@hortonworks.com>
Authored: Fri Jan 27 18:17:48 2017 -0800
Committer: Sumit Mohanty <smoha...@hortonworks.com>
Committed: Fri Jan 27 18:19:36 2017 -0800

----------------------------------------------------------------------
 ambari-server/src/main/python/bootstrap.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/0e8c966d/ambari-server/src/main/python/bootstrap.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/bootstrap.py 
b/ambari-server/src/main/python/bootstrap.py
index d836040..f1c53ce 100755
--- a/ambari-server/src/main/python/bootstrap.py
+++ b/ambari-server/src/main/python/bootstrap.py
@@ -630,8 +630,7 @@ class BootstrapDefault(Bootstrap):
     self.host_log.write("==========================\n")
     self.host_log.write("Running create-python-wrap script...")
 
-    command = "chmod a+x %s && %s" % \
-              (REMOTE_CREATE_PYTHON_WRAP_SCRIPT, 
REMOTE_CREATE_PYTHON_WRAP_SCRIPT)
+    command = "chmod a+x {script} && {sudo} {script}".format(sudo=AMBARI_SUDO, 
script=REMOTE_CREATE_PYTHON_WRAP_SCRIPT)
 
     ssh = SSH(params.user, params.sshPort, params.sshkey_file, self.host, 
command,
               params.bootdir, self.host_log)

Reply via email to