AMBARI-20512: While generating hash for ambari-server to fill agent cache, all 
the symlinks should be traversed too (Madhuvanthi Radhakrishnan via jluniya)


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

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: de8e3c57449bb95c5b8039da48ef2166621fe800
Parents: f64eff6
Author: Jayush Luniya <[email protected]>
Authored: Tue Mar 21 11:55:14 2017 -0700
Committer: Jayush Luniya <[email protected]>
Committed: Tue Mar 21 11:55:14 2017 -0700

----------------------------------------------------------------------
 ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/de8e3c57/ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py 
b/ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py
index baf8179..dba6833 100644
--- a/ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py
+++ b/ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py
@@ -76,7 +76,7 @@ class ResourceFilesKeeper():
 
   def _iter_update_directory_archive(self, subdirs_list):
     for subdir in subdirs_list:
-      for root, dirs, _ in os.walk(subdir):
+      for root, dirs, _ in os.walk(subdir, followlinks=True):
         for d in dirs:
           if d in self.ARCHIVABLE_DIRS:
             full_path = os.path.abspath(os.path.join(root, d))

Reply via email to