# File plugins/mcollective/application/facts.rb, line 30 def main rpcutil = rpcclient("rpcutil") rpcutil.progress = false facts = {} rpcutil.get_fact(:fact => configuration[:fact]) do |resp| begin value = resp[:body][:data][:value] if value facts.include?(value) ? facts[value] << resp[:senderid] : facts[value] = [ resp[:senderid] ] end rescue Exception => e STDERR.puts "Could not parse facts for #{resp[:senderid]}: #{e.class}: #{e}" end end show_single_fact_report(configuration[:fact], facts, options[:verbose]) printrpcstats end