ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [1/2] ambari git commit: AMBARI-15404. File resource timed out (aonishuk)
Date Mon, 14 Mar 2016 17:50:24 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 e1b90e838 -> b6d0f773f
  refs/heads/trunk 2f9945fad -> 5bd7c2bc7


AMBARI-15404. File resource timed out (aonishuk)


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

Branch: refs/heads/trunk
Commit: 5bd7c2bc7db2808a1fe9d6048e72ff483a6208ef
Parents: 2f9945f
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon Mar 14 19:49:57 2016 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Mar 14 19:49:57 2016 +0200

----------------------------------------------------------------------
 .../src/main/python/resource_management/core/providers/system.py   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5bd7c2bc/ambari-common/src/main/python/resource_management/core/providers/system.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/core/providers/system.py b/ambari-common/src/main/python/resource_management/core/providers/system.py
index 50b99cf..b4d85e4 100644
--- a/ambari-common/src/main/python/resource_management/core/providers/system.py
+++ b/ambari-common/src/main/python/resource_management/core/providers/system.py
@@ -101,7 +101,7 @@ def _ensure_metadata(path, user, group, mode=None, cd_access=None, recursive_own
       raise Fail("'cd_acess' value '%s' is not valid" % (cd_access))
     
     dir_path = path
-    while dir_path != os.sep:
+    while not os.path.samefile(dir_path, os.sep):
       if sudo.path_isdir(dir_path):
         sudo.chmod_extended(dir_path, cd_access+"+rx")
         


Mime
View raw message