Project

General

Profile

« Previous | Next » 

Revision 641ef42a

Added by Ivan Necas almost 6 years ago

Refs #24072 - fix selecting hostgroup with compute resource

Without this fix, the 'Virtual Machine' tab was giving:

'mybox' not found on 'libvirt (Libvirt)' 'mybox' could
be deleted or 'libvirt (Libvirt)' is not responding.

View differences:

app/models/host/managed.rb
end
def set_compute_attributes
return unless compute_profile_present?
self.compute_attributes = compute_resource.compute_profile_attributes_for(compute_profile_id)
if compute_profile_present?
self.compute_attributes = compute_resource.compute_profile_attributes_for(compute_profile_id)
elsif compute_resource
self.compute_attributes ||= {}
end
end
def set_ip_address

Also available in: Unified diff