diff options
author | Sandra Tiffin <sandi.tiffin@gmail.com> | 2017-12-12 11:32:41 -0800 |
---|---|---|
committer | Sandra Tiffin <sandi.tiffin@gmail.com> | 2017-12-12 11:32:41 -0800 |
commit | b3af979455390e45e7298a0542b670fb35a9a6cc (patch) | |
tree | 70e81f9a02d92eb3a9b4c6d739e7626480a33d4a /lib/chef/chef_fs | |
parent | 2ed7c7be81b930e99affb139f1854309d55fabb5 (diff) | |
download | chef-b3af979455390e45e7298a0542b670fb35a9a6cc.tar.gz |
fix for data bag names partially matching search reserved words
Signed-off-by: Sandra Tiffin <sandi.tiffin@gmail.com>
Diffstat (limited to 'lib/chef/chef_fs')
-rw-r--r-- | lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb b/lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb index 4b272daabc..3b1fb53da6 100644 --- a/lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb +++ b/lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb @@ -5,7 +5,7 @@ class Chef module ChefFS module DataHandler class DataBagItemDataHandler < DataHandlerBase - RESERVED_NAMES = /node|role|environment|client/ + RESERVED_NAMES = /^(node|role|environment|client)$/ def normalize(data_bag_item, entry) # If it's wrapped with raw_data, unwrap it. |