summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-03-15 15:55:45 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-03-15 15:55:45 -0700
commitfb46ed8de333f035d8f915a8a318f660ac68087a (patch)
tree65320d3be50301d84ca1f480bedad610626837db
parentc301bf91f3702621b6fa881f0bfb3c04557158c5 (diff)
downloadchef-lcg/early-run-context.tar.gz
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/data_bag.rb6
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