res = {}
allhosts.each_pair do |hostname, host|
# If a returned value doesn't have all the attributes we're searching for, skip
res = {}
allhosts.each_pair do |hostname, host|
# If a returned value doesn't have all the attributes we're searching for, skip