Revision 641ef42a
Added by Ivan Necas almost 6 years ago
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
Refs #24072 - fix selecting hostgroup with compute resource
Without this fix, the 'Virtual Machine' tab was giving: