Module: HostExt::Proxmox::Associator
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/host_ext/proxmox/associator.rb
Defined Under Namespace
Modules: Overrides
Instance Method Summary collapse
Instance Method Details
#for_vm_uuid(cr, vm) ⇒ Object
41 42 43 44 |
# File 'app/models/concerns/host_ext/proxmox/associator.rb', line 41 def for_vm_uuid(cr, vm) where(:compute_resource_id => cr.id, :uuid => Array.wrap(vm).compact.map(cr.id.to_s + '_' + vm&.identity).map(&:to_s)) end |