Skip to content

Commit

Permalink
Update the acceptance:facts rake task for beaker 5
Browse files Browse the repository at this point in the history
The `output` method is no longer available to the test case. Instead
access the output from the result that's yielded to the method.
  • Loading branch information
joshcooper committed Apr 9, 2024
1 parent 2bd6230 commit d5a661c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acceptance/util/puppet_facts_output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down

0 comments on commit d5a661c

Please sign in to comment.