From d5a661c95fd8e08716c8bfdd9b0c5cc157bb2123 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Tue, 9 Apr 2024 14:42:05 -0700 Subject: [PATCH] Update the acceptance:facts rake task for beaker 5 The `output` method is no longer available to the test case. Instead access the output from the result that's yielded to the method. --- acceptance/util/puppet_facts_output.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acceptance/util/puppet_facts_output.rb b/acceptance/util/puppet_facts_output.rb index a8a0ee09f7..f6986fe0d5 100644 --- a/acceptance/util/puppet_facts_output.rb +++ b/acceptance/util/puppet_facts_output.rb @@ -132,8 +132,8 @@ def filename_from_facts(facts) end agents.each do |agent| - on agent, facter('--show-legacy -p -j'), :acceptable_exit_codes => [0] do - facts = JSON.parse(stdout) + on(agent, facter('--show-legacy -p -j'), :acceptable_exit_codes => [0]) do |result| + facts = JSON.parse(result.stdout) facter_major_version = facts['facterversion'] primary_network = facts['networking']['primary']