mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Merge pull request #32 from sschneid/only_deploy_to_green_hosts
Don't deploy VMs to not-good hypervisors
This commit is contained in:
commit
92041c0334
1 changed files with 4 additions and 2 deletions
|
|
@ -65,8 +65,10 @@ module Vmpooler
|
||||||
datacenter.hostFolder.children.each do |folder|
|
datacenter.hostFolder.children.each do |folder|
|
||||||
next unless folder.name == cluster
|
next unless folder.name == cluster
|
||||||
folder.host.each do |host|
|
folder.host.each do |host|
|
||||||
hosts[host.name] = host
|
if host.overallStatus == 'green'
|
||||||
hosts_sort[host.name] = host.vm.length
|
hosts[host.name] = host
|
||||||
|
hosts_sort[host.name] = host.vm.length
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue