mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Properly store and show domain key for get requests
This commit is contained in:
parent
d30282ef25
commit
1cfe1b7131
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,11 @@ class Format
|
||||||
|
|
||||||
hostname_hash.delete("ok")
|
hostname_hash.delete("ok")
|
||||||
hostname_hash.each do |type, hosts|
|
hostname_hash.each do |type, hosts|
|
||||||
host_hash[type] = hosts["hostname"]
|
if type == "domain"
|
||||||
|
host_hash[type] = hosts
|
||||||
|
else
|
||||||
|
host_hash[type] = hosts["hostname"]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
puts host_hash.to_json
|
puts host_hash.to_json
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue