Revision 47990639
Added by Tomáš Strachota over 8 years ago
app/controllers/hosts_controller.rb | ||
---|---|---|
|
||
def interfaces
|
||
@host = Host.new params[:host]
|
||
|
||
merge = InterfaceMerge.new
|
||
merge.run(@host.interfaces, @host.compute_resource.try(:compute_profile_for, @host.compute_profile_id))
|
||
@host.apply_compute_profile(InterfaceMerge.new)
|
||
|
||
render :partial => "interfaces_tab"
|
||
end
|
Also available in: Unified diff
Fixes #6342 - merge compute profile when attributes in api host#create
API v2 host#craete call now merges user specified compute attributes
with compute profile. UI functionality remains untouched.