mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Merge pull request #272 from mattkirby/pooler_40
(POOLER-40) Do not return folders with get_pool_vms
This commit is contained in:
commit
afc5a33d8f
2 changed files with 25 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue