Revision 3188de3a
Added by Marek Hulán about 4 years ago
app/helpers/compute_resources_vms_helper.rb | ||
---|---|---|
end
|
||
|
||
def vm_import_action(vm, html_options = {})
|
||
return unless Host.for_vm(@compute_resource, vm).empty?
|
||
@_linked_hosts_cache ||= Host.where(:compute_resource_id => @compute_resource.id).pluck(:uuid)
|
||
return if @_linked_hosts_cache.include?(vm.identity.to_s)
|
||
|
||
import_managed_link = display_link_if_authorized(
|
||
_("Import as managed Host"),
|
Also available in: Unified diff
Fixes #26567 - improve vm listing performance