mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
Ensure hosts aren't in 'maintenance mode' when cloning
This commit is contained in:
parent
be64be37a9
commit
3a7659f284
1 changed files with 4 additions and 1 deletions
|
|
@ -65,7 +65,10 @@ module Vmpooler
|
|||
datacenter.hostFolder.children.each do |folder|
|
||||
next unless folder.name == cluster
|
||||
folder.host.each do |host|
|
||||
if host.overallStatus == 'green'
|
||||
if (
|
||||
(host.overallStatus == 'green') and
|
||||
(! host.runtime.inMaintenanceMode)
|
||||
)
|
||||
hosts[host.name] = host
|
||||
hosts_sort[host.name] = host.vm.length
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue