From 34186c6bda54dc3d8f583257ed237a772cca1516 Mon Sep 17 00:00:00 2001 From: tvpartytonight Date: Thu, 14 May 2026 12:56:30 -0700 Subject: [PATCH] (maint) Return nil ENV does not contain "RELEASE_STREAM" When running the task 'ci:test:setup' most users will not have 'RELEASE_STREAM' defined; this allows the task complete successfully instead of raising a `KeyError: key not found` exception. --- setup/common/012_Finalize_Installs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/common/012_Finalize_Installs.rb b/setup/common/012_Finalize_Installs.rb index a4bf2e1..aae1dda 100644 --- a/setup/common/012_Finalize_Installs.rb +++ b/setup/common/012_Finalize_Installs.rb @@ -23,7 +23,7 @@ step 'Configure gem mirror' do # Skip if RELEASE_STREAM is 'puppet9' and platform is aix or solaris # Issue with Rubygems's SafeMarshal see: PA-8312 - release_stream = ENV.fetch('RELEASE_STREAM') + release_stream = ENV.fetch('RELEASE_STREAM', nil) skip_platforms = /aix|solaris/i if release_stream == 'puppet9' && hosts.any? { |host| host['platform'] =~ skip_platforms } logger.info 'Skipping configure_gem_mirror for puppet9 on aix/solaris, issue with rubygems 4.0'