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']