lib/koma/backend/ssh.rb in koma-0.7.1 vs lib/koma/backend/ssh.rb in koma-0.7.2

- old
+ new

@@ -3,11 +3,11 @@ module Koma module Backend class Ssh < Base def gather if host.include?(',') - list = host.split(',') - results = Parallel.map(list, in_thread: 4) do |h| + list = host.split(',').uniq + results = Parallel.map(list) do |h| gather_via_ssh(h, options) end arr = [list, results].transpose result = Hash[*arr.flatten] else