diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-04-25 09:38:10 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-04-25 09:38:10 -0700 |
commit | faa61371fe5129037c48d889371245092cc0ccf5 (patch) | |
tree | 4a888f5d383588ff7b8d398beb488fcbe689607f | |
parent | c9cf725ebe0ef731f32a96f4bf4114a5b97548b7 (diff) | |
download | chef-constants.tar.gz |
Avoid constant warnings in specsconstants
We get a bunch of constant warnings when running the specs.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/knife/cookbook_upload.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/cookbook_upload.rb b/lib/chef/knife/cookbook_upload.rb index 1e5965f885..3853dd6ffb 100644 --- a/lib/chef/knife/cookbook_upload.rb +++ b/lib/chef/knife/cookbook_upload.rb @@ -23,8 +23,8 @@ require_relative "../knife" class Chef class Knife class CookbookUpload < Knife - CHECKSUM = "checksum".freeze - MATCH_CHECKSUM = /[0-9a-f]{32,}/.freeze + CHECKSUM ||= "checksum".freeze + MATCH_CHECKSUM ||= /[0-9a-f]{32,}/.freeze deps do require_relative "../mixin/file_class" |