Project

General

Profile

« Previous | Next » 

Revision 3188de3a

Added by Marek Hulán about 4 years ago

Fixes #26567 - improve vm listing performance

View differences:

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