mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -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)
|
host_usage = get_host_utilization(host, model)
|
||||||
target_hosts << host_usage if host_usage
|
target_hosts << host_usage if host_usage
|
||||||
end
|
end
|
||||||
target_hosts.sort[0][1]
|
target_host = target_hosts.sort[0][1]
|
||||||
|
[target_host, target_host.name]
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_pool(poolname)
|
def find_pool(poolname)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue