Merge pull request #32 from sschneid/only_deploy_to_green_hosts

Don't deploy VMs to not-good hypervisors
This commit is contained in:
Roger Ignazio 2014-09-04 12:04:52 -07:00
commit 92041c0334

View file

@ -65,8 +65,10 @@ module Vmpooler
datacenter.hostFolder.children.each do |folder|
next unless folder.name == cluster
folder.host.each do |host|
hosts[host.name] = host
hosts_sort[host.name] = host.vm.length
if host.overallStatus == 'green'
hosts[host.name] = host
hosts_sort[host.name] = host.vm.length
end
end
end