diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-03-14 22:59:00 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-03-14 22:59:00 -0700 |
commit | 61c8f96347ed8824792d63babb6f336ca7a4a335 (patch) | |
tree | c33decb7aee038a350bdb9148b62b8888f5fb720 /lib/chef/data_bag.rb | |
parent | bd82cb8df423582cc59d4f587c5fb4ba056c5206 (diff) | |
download | chef-61c8f96347ed8824792d63babb6f336ca7a4a335.tar.gz |
Early alloction of the Chef::RunContext
Allow for allocation of the Chef::RunContext without its arguments and
use that to allocate it early. The APIs are kept backcompatible since
otherwise this has a decent chance of blowing up something like
chefspec.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/data_bag.rb')
-rw-r--r-- | lib/chef/data_bag.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/data_bag.rb b/lib/chef/data_bag.rb index 2533eb2f4a..980c486b71 100644 --- a/lib/chef/data_bag.rb +++ b/lib/chef/data_bag.rb @@ -32,8 +32,8 @@ class Chef include Chef::Mixin::FromFile include Chef::Mixin::ParamsValidate - VALID_NAME = /^[\.\-[:alnum:]_]+$/.freeze - RESERVED_NAMES = /^(node|role|environment|client)$/.freeze + VALID_NAME = /^[\.\-[:alnum:]_]+$/ + RESERVED_NAMES = /^(node|role|environment|client)$/ def self.validate_name!(name) unless name =~ VALID_NAME |