mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Return host name with object when finding least used compatible host
This commit is contained in:
parent
f8bd79a8d9
commit
12c2c4a09b
1 changed files with 2 additions and 1 deletions
|
|
@ -254,7 +254,8 @@ module Vmpooler
|
|||
host_usage = get_host_utilization(host, model)
|
||||
target_hosts << host_usage if host_usage
|
||||
end
|
||||
target_hosts.sort[0][1]
|
||||
target_host = target_hosts.sort[0][1]
|
||||
[target_host, target_host.name]
|
||||
end
|
||||
|
||||
def find_pool(poolname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue