summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmFl <EmFl@users.noreply.github.com>2017-12-08 17:38:29 +0100
committerGitHub <noreply@github.com>2017-12-08 17:38:29 +0100
commit3ee897c4f8eed8c1de61ffe60378d4eb1fa5136e (patch)
treeaafc5fa706801be1837e9c2716ad78d74321ef23
parentbcdb1efcb33c580c89a96b50688d6872741ed7ae (diff)
downloadchef-3ee897c4f8eed8c1de61ffe60378d4eb1fa5136e.tar.gz
Fix related to #3058
I think there was a bug introduced by #3058 where any data bag *containing* reserved words are seen as invalid
-rw-r--r--lib/chef/data_bag.rb2
1 files changed, 1 insertions, 1 deletions
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