diff options
author | Ilan Rabinovitch <ilan@ooyala.com> | 2013-10-31 00:14:03 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-12-20 10:06:44 -0800 |
commit | 3ea38e05ff852041134a5a289fe1f5767a3af4da (patch) | |
tree | bef57c139e9bdafe918b1b4369413a1957656e6f | |
parent | 08679cc1fd512e808b051444846ff65e17aa6da6 (diff) | |
download | chef-3ea38e05ff852041134a5a289fe1f5767a3af4da.tar.gz |
allow dots in data bag names. Chef server already seems to accept these when making direct API calls.
-rw-r--r-- | lib/chef/data_bag_item.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/data_bag_item.rb b/lib/chef/data_bag_item.rb index 3528ba724a..07dd15a1dc 100644 --- a/lib/chef/data_bag_item.rb +++ b/lib/chef/data_bag_item.rb @@ -35,7 +35,7 @@ class Chef include Chef::Mixin::FromFile include Chef::Mixin::ParamsValidate - VALID_ID = /^[\-[:alnum:]_]+$/ + VALID_ID = /^[\.\-[:alnum:]_]+$/ def self.validate_id!(id_str) if id_str.nil? || ( id_str !~ VALID_ID ) |