Skip to content

Commit 95266d8

Browse files
committed
(FIXUP) Collect hostnames in array before outputting
1 parent a065b72 commit 95266d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/vmfloaty/utils.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,13 @@ def self.generate_os_hash(os_args)
8181
def self.print_fqdn_for_host(service, hostname, host_data)
8282
case service.type
8383
when 'ABS'
84+
abs_hostnames = []
85+
8486
host_data['allocated_resources'].each do |vm_name, _i|
85-
puts vm_name['hostname']
87+
abs_hostnames << vm_name['hostname']
8688
end
89+
90+
puts abs_hostnames.join("\n")
8791
when 'Pooler'
8892
puts "#{hostname}.#{host_data['domain']}"
8993
when 'NonstandardPooler'

0 commit comments

Comments
 (0)