summaryrefslogtreecommitdiff
path: root/lib/chef/data_bag.rb
diff options
context:
space:
mode:
authorIlan Rabinovitch <ilan@ooyala.com>2013-11-08 14:44:03 -0500
committerBryan McLellan <btm@opscode.com>2013-12-20 10:06:45 -0800
commitd676779215aaa7b45675592942d4b4ea50b7e4f7 (patch)
tree62c77267a4a7223ebad7a9a55e9cee67b2561055 /lib/chef/data_bag.rb
parent3ea38e05ff852041134a5a289fe1f5767a3af4da (diff)
downloadchef-d676779215aaa7b45675592942d4b4ea50b7e4f7.tar.gz
allow periods in databag names too
Diffstat (limited to 'lib/chef/data_bag.rb')
-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 5994e6f8d1..639d71a74d 100644
--- a/lib/chef/data_bag.rb
+++ b/lib/chef/data_bag.rb
@@ -31,7 +31,7 @@ class Chef
include Chef::Mixin::FromFile
include Chef::Mixin::ParamsValidate
- VALID_NAME = /^[\-[:alnum:]_]+$/
+ VALID_NAME = /^[\.\-[:alnum:]_]+$/
def self.validate_name!(name)
unless name =~ VALID_NAME