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 2016/07/13 11:38:50 UTC

[2/2] ambari git commit: AMBARI-17685. Syntax error in ambari-server/src/main/resources/custom_actions/scripts/check_host.py (aonishuk)

AMBARI-17685. Syntax error in ambari-server/src/main/resources/custom_actions/scripts/check_host.py (aonishuk)


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

Branch: refs/heads/branch-2.4
Commit: a76fb4cf99227761955c93c51e19e27c3bf1ec95
Parents: 0e258b8
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Wed Jul 13 14:38:28 2016 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Wed Jul 13 14:38:28 2016 +0300

----------------------------------------------------------------------
 .../src/main/resources/custom_actions/scripts/check_host.py        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a76fb4cf/ambari-server/src/main/resources/custom_actions/scripts/check_host.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/custom_actions/scripts/check_host.py b/ambari-server/src/main/resources/custom_actions/scripts/check_host.py
index 004d5ef..3d9dfa8 100644
--- a/ambari-server/src/main/resources/custom_actions/scripts/check_host.py
+++ b/ambari-server/src/main/resources/custom_actions/scripts/check_host.py
@@ -380,7 +380,7 @@ class CheckHost(Script):
           Execute(chmod_cmd, not_if = format("test -e {java_exec}"), sudo = True)
           Execute(install_cmd, not_if = format("test -e {java_exec}"))
           File(format("{java_home}/bin/java"), mode=0755, cd_access="a")
-          Directory(java_home, user=getpass.getuser(), recursive_ownership=True)
+          Directory(java_home, owner=getpass.getuser(), recursive_ownership=True)
           Execute(('chmod', '-R', '755', java_home), sudo = True)
         except Exception, e:
           message = "Error installing java.\n" + str(e)