ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject ambari git commit: AMBARI-19743. Agent registration fails with non-root agent user (Attila Doroszlai via smohanty)
Date Sat, 28 Jan 2017 02:19:14 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 80636b900 -> 4a2c24627


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/4a2c2462
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4a2c2462
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4a2c2462

Branch: refs/heads/branch-2.5
Commit: 4a2c24627205b459ff2ec2b874a2311957df8369
Parents: 80636b9
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Fri Jan 27 18:17:48 2017 -0800
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Fri Jan 27 18:17:48 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/4a2c2462/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)


Mime
View raw message