summaryrefslogtreecommitdiff
path: root/chef-config
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2015-08-13 14:54:57 +0100
committerThom May <thom@may.lt>2015-08-13 14:54:57 +0100
commitf9b99048c1ce00d3c43d5215b166f4b2832160a6 (patch)
tree3ad280ab40f14cb21b13165979ca26a9aa82f7e9 /chef-config
parentb6ae7dca08543d04e791381a4e688fe708cfcda9 (diff)
parentf4ad4af6dc996bc1068dde1249870e45e2635c3f (diff)
downloadchef-f9b99048c1ce00d3c43d5215b166f4b2832160a6.tar.gz
Merge pull request #3764 from polamjag/fix-duplicated-directories-list
uniquify chef_repo_path
Diffstat (limited to 'chef-config')
-rw-r--r--chef-config/lib/chef-config/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index 301a3ba0b6..a3f06e9b23 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -128,7 +128,7 @@ module ChefConfig
if chef_repo_path.kind_of?(String)
PathHelper.join(chef_repo_path, child_path)
else
- chef_repo_path.map { |path| PathHelper.join(path, child_path)}
+ chef_repo_path.uniq.map { |path| PathHelper.join(path, child_path)}
end
end