Merge pull request #272 from mattkirby/pooler_40

(POOLER-40) Do not return folders with get_pool_vms
This commit is contained in:
mchllweeks 2018-07-09 12:50:00 -07:00 committed by GitHub
commit afc5a33d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 1 deletions

View file

@ -51,7 +51,7 @@ module Vmpooler
return vms if folder_object.nil?
folder_object.childEntity.each do |vm|
vms << { 'name' => vm.name }
vms << { 'name' => vm.name } if vm.is_a? RbVmomi::VIM::VirtualMachine
end
end
vms