Repository: ambari Updated Branches: refs/heads/branch-2.5 38dd26e3e -> feb14941b
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/feb14941 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/feb14941 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/feb14941 Branch: refs/heads/branch-2.5 Commit: feb14941b0b5acd81649d07f02ea5cc7a0f512cc Parents: 38dd26e Author: Jayush Luniya <[email protected]> Authored: Tue Mar 21 11:55:14 2017 -0700 Committer: Jayush Luniya <[email protected]> Committed: Tue Mar 21 11:57:01 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/feb14941/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))
