Module: ForemanFogProxmox::ComputeResourceHostAssociator::Overrides
- Defined in:
- app/services/concerns/foreman_fog_proxmox/compute_resource_host_associator.rb
Instance Method Summary collapse
Instance Method Details
#associate_hosts ⇒ Object
27 28 29 30 31 |
# File 'app/services/concerns/foreman_fog_proxmox/compute_resource_host_associator.rb', line 27 def associate_hosts compute_resource.vms(:eager_loading => true).each do |vm| associate_vm(vm) if Host.for_vm_uuid(compute_resource, vm).empty? end end |