From d551e08934690f8321e1cc1ca85a32a477588902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 9 Jan 2024 09:00:57 -1000 Subject: [PATCH] Fix task execution with Ruby 3.2 Puppet 8 bundle Ruby 3.2, and kwargs auto-promotion is not done anymore with this version. --- tasks/utils/application_factory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/utils/application_factory.rb b/tasks/utils/application_factory.rb index 2d0238b..a98affe 100644 --- a/tasks/utils/application_factory.rb +++ b/tasks/utils/application_factory.rb @@ -13,7 +13,7 @@ def self.all def self.find(application, environment) res = configuration_metadata_for(application, environment).map do |spec| - Application.new(spec) + Application.new(**spec) end raise "No match for application #{application} in environment #{environment}" if res.empty?