summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-01-27 16:45:50 -0800
committerJohn Keiser <john@johnkeiser.com>2016-02-01 08:08:13 -0800
commit47fdb75424851f5b692c438e7ea051871c92b452 (patch)
treef1e128212644aa268a0d2dde3828388de5852656 /lib/chef
parent2c471e0c7bf0e79017e65a78b59b59bd78b92152 (diff)
downloadchef-47fdb75424851f5b692c438e7ea051871c92b452.tar.gz
Fix /acls/data_bags local mode path
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/chef_fs/chef_fs_data_store.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/chef_fs/chef_fs_data_store.rb b/lib/chef/chef_fs/chef_fs_data_store.rb
index 729b01fdcc..a02fe605f4 100644
--- a/lib/chef/chef_fs/chef_fs_data_store.rb
+++ b/lib/chef/chef_fs/chef_fs_data_store.rb
@@ -696,6 +696,12 @@ class Chef
end
elsif path[0] == "acls"
+ # /acls/data -> /acls/data_bags
+ if path[1] == "data"
+ path = path.dup
+ path[1] = "data_bags"
+ end
+
# /acls/containers|nodes|.../x.json
# /acls/organization.json
if path.length == 3 || path == [ "acls", "organization" ]