summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-19 12:40:27 -0800
committerGitHub <noreply@github.com>2017-12-19 12:40:27 -0800
commit012b653ae800847e6ef6babad31e8e7f41ef3299 (patch)
tree7188f5d70100efca59d6784311ecf09080c6162f /lib
parentfc813e21f253d5278cb42710874a34cfebfcc8ca (diff)
parentb3af979455390e45e7298a0542b670fb35a9a6cc (diff)
downloadchef-012b653ae800847e6ef6babad31e8e7f41ef3299.tar.gz
Merge pull request #6652 from sandratiffin/CHEF-3058
fix for data bag names partially matching search reserved words
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb2
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.