summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Hemminger <hemminger@hotmail.com>2023-05-04 15:41:52 -0500
committerGitHub <noreply@github.com>2023-05-04 15:41:52 -0500
commitd89e87c1fdf3823d64ee89195531706d0b492a77 (patch)
treebdd6e414e2471d1fe609c61b7deee0b2e83781ca
parent420a2acf44e59e82e78eef9688530c1d8a747c73 (diff)
downloadchef-d89e87c1fdf3823d64ee89195531706d0b492a77.tar.gz
remove eol warning
Since EOL is arbitrary based on company releases having a hard coded time doesn't make sense and is causing confusion when triggered and version is still active. Signed-off by: Corey Hemminger <hemminger@hotmail.com>
-rw-r--r--lib/chef/client.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index 743b5ec473..7257d74981 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -305,8 +305,6 @@ class Chef
# keep this inside the main loop to get exception backtraces
end_profiling
- warn_if_eol
-
# rebooting has to be the last thing we do, no exceptions.
Chef::Platform::Rebooter.reboot_if_needed!(node)
rescue Exception => run_error
@@ -336,19 +334,6 @@ class Chef
#
# @api private
- def warn_if_eol
- require_relative "version"
-
- # We make a release every year so take the version you're on + 2006 and you get
- # the year it goes EOL
- eol_year = 2006 + Gem::Version.new(Chef::VERSION).segments.first
-
- if Time.now > Time.new(eol_year, 5, 01)
- logger.warn("This release of #{ChefUtils::Dist::Infra::PRODUCT} became end of life (EOL) on May 1st #{eol_year}. Please update to a supported release to receive new features, bug fixes, and security updates.")
- end
- end
-
- # @api private
def configure_formatters
formatters_for_run.map do |formatter_name, output_path|
if output_path.nil?