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/03/14 18:50:25 UTC

[2/2] ambari git commit: AMBARI-15404. File resource timed out (aonishuk)

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

Branch: refs/heads/branch-2.2
Commit: b6d0f773f3a44825543a86a31d9299c6fe29fa89
Parents: e1b90e8
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Mon Mar 14 19:50:05 2016 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Mar 14 19:50:05 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/b6d0f773/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 4e6a122..81073bf 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
@@ -68,7 +68,7 @@ def _ensure_metadata(path, user, group, mode=None, cd_access=None):
       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")