You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2014/04/11 23:11:02 UTC

git commit: AMBARI-5447. WebHCat start Fail with authorization enabled. 1.3.2 fix. (swagle)

Repository: ambari
Updated Branches:
  refs/heads/branch-1.5.1 bfebe047b -> 72c261f8e


AMBARI-5447. WebHCat start Fail with authorization enabled. 1.3.2 fix. (swagle)


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

Branch: refs/heads/branch-1.5.1
Commit: 72c261f8e040e328c5bb044c1e7f6fe8541d2809
Parents: bfebe04
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Fri Apr 11 14:06:00 2014 -0700
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Fri Apr 11 14:10:40 2014 -0700

----------------------------------------------------------------------
 .../resource_management/libraries/providers/copy_from_local.py     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/72c261f8/ambari-agent/src/main/python/resource_management/libraries/providers/copy_from_local.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/resource_management/libraries/providers/copy_from_local.py b/ambari-agent/src/main/python/resource_management/libraries/providers/copy_from_local.py
index 3fa8a54..9031a77 100644
--- a/ambari-agent/src/main/python/resource_management/libraries/providers/copy_from_local.py
+++ b/ambari-agent/src/main/python/resource_management/libraries/providers/copy_from_local.py
@@ -64,7 +64,7 @@ class CopyFromLocalProvider(Provider):
     pass
 
     if mode:
-      dir_mode = oct(mode)
+      dir_mode = oct(mode)[1:]
       chmod_cmd = format('fs -chmod {dir_mode} {dest_path}')
 
       ExecuteHadoop(chmod_cmd,