Properly store and show domain key for get requests

This commit is contained in:
Brian Cain 2015-10-16 15:35:40 -07:00
parent d30282ef25
commit 1cfe1b7131

View file

@ -7,8 +7,12 @@ class Format
hostname_hash.delete("ok") hostname_hash.delete("ok")
hostname_hash.each do |type, hosts| hostname_hash.each do |type, hosts|
if type == "domain"
host_hash[type] = hosts
else
host_hash[type] = hosts["hostname"] host_hash[type] = hosts["hostname"]
end end
end
puts host_hash.to_json puts host_hash.to_json
end end