We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a065b72 commit a66112fCopy full SHA for a66112f
lib/vmfloaty/utils.rb
@@ -79,18 +79,22 @@ def self.generate_os_hash(os_args)
79
end
80
81
def self.print_fqdn_for_host(service, hostname, host_data)
82
+ hostnames = []
83
+
84
case service.type
85
when 'ABS'
86
host_data['allocated_resources'].each do |vm_name, _i|
- puts vm_name['hostname']
87
+ hostnames << vm_name['hostname']
88
89
when 'Pooler'
- puts "#{hostname}.#{host_data['domain']}"
90
+ hostnames << "#{hostname}.#{host_data['domain']}"
91
when 'NonstandardPooler'
- puts host_data['fqdn']
92
+ hostnames << host_data['fqdn']
93
else
94
raise "Invalid service type #{service.type}"
95
96
97
+ puts hostnames.join("\n")
98
99
100
def self.pretty_print_hosts(verbose, service, hostnames = [], print_to_stderr = false)
0 commit comments