From 3ee897c4f8eed8c1de61ffe60378d4eb1fa5136e Mon Sep 17 00:00:00 2001 From: EmFl Date: Fri, 8 Dec 2017 17:38:29 +0100 Subject: Fix related to #3058 I think there was a bug introduced by #3058 where any data bag *containing* reserved words are seen as invalid --- lib/chef/data_bag.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/data_bag.rb b/lib/chef/data_bag.rb index 82eb03fbd7..cd10b7c704 100644 --- a/lib/chef/data_bag.rb +++ b/lib/chef/data_bag.rb @@ -33,7 +33,7 @@ class Chef include Chef::Mixin::ParamsValidate VALID_NAME = /^[\.\-[:alnum:]_]+$/ - RESERVED_NAMES = /node|role|environment|client/ + RESERVED_NAMES = /^(node|role|environment|client)$/ attr_accessor :chef_server_rest -- cgit v1.2.1