diff options
-rw-r--r-- | lib/chef/data_bag.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/data_bag.rb b/lib/chef/data_bag.rb index 980c486b71..e8545fb1c0 100644 --- a/lib/chef/data_bag.rb +++ b/lib/chef/data_bag.rb @@ -2,7 +2,7 @@ # Author:: Adam Jacob (<adam@chef.io>) # Author:: Nuo Yan (<nuo@chef.io>) # Author:: Christopher Brown (<cb@chef.io>) -# Copyright:: Copyright 2009-2018, Chef Software Inc. +# Copyright:: Copyright 2009-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -32,8 +32,8 @@ class Chef include Chef::Mixin::FromFile include Chef::Mixin::ParamsValidate - VALID_NAME = /^[\.\-[:alnum:]_]+$/ - RESERVED_NAMES = /^(node|role|environment|client)$/ + VALID_NAME = /^[\.\-[:alnum:]_]+$/.freeze + RESERVED_NAMES = /^(node|role|environment|client)$/.freeze def self.validate_name!(name) unless name =~ VALID_NAME |