summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john.mccrae@progress.com>2023-05-15 21:54:00 +0000
committerJohn <john.mccrae@progress.com>2023-05-15 21:54:00 +0000
commit2f25e4d5135faab57cbccd7ba576e5cff1e6b4b6 (patch)
treea03c1b9586ca8f2c1eee676b06ddd31c484d7550
parentbc995775bf86e73f454a9779370d8aab2ae6d71b (diff)
downloadchef-2f25e4d5135faab57cbccd7ba576e5cff1e6b4b6.tar.gz
[chef-17] 26 of X - Updating EOL Support
Signed-off-by: John <john.mccrae@progress.com>
-rw-r--r--lib/chef/client.rb2
-rw-r--r--spec/unit/client_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index 4c690b230f..ba2eee8ebe 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -336,7 +336,7 @@ class Chef
return if Time.now < cut_off_date
- logger.warn("This release of #{ChefUtils::Dist::Infra::PRODUCT} became end of life (EOL) on #{cut_off_date.strftime('%b %d, %Y')}. Please update to a supported release to receive new features, bug fixes, and security updates.")
+ logger.warn("This release of #{ChefUtils::Dist::Infra::PRODUCT} became end of life (EOL) on #{cut_off_date.strftime("%b %d, %Y")}. Please update to a supported release to receive new features, bug fixes, and security updates.")
end
def eol_override
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index ea0e72d83b..ba25285278 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -309,7 +309,7 @@ describe Chef::Client do
end
describe "eol release warning" do
- it "warns when running an EOL release" do
+ it "warns when running an EOL release" do
stub_const("Chef::VERSION", 15)
# added a call to client because Time.now gets invoked multiple times during instantiation. Don't mock Time until after client initialized
client