Skip to content

Commit 98555b6

Browse files
authored
Fixes #37704 - Do not require content_facet_attributes for host updates (#11095)
1 parent 89e7a9c commit 98555b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def purpose_addon_params
4242
end
4343

4444
def set_content_view_environments
45-
return if @host&.content_facet.blank? ||
45+
content_facet_attributes = params.dig(:host, :content_facet_attributes)
46+
return if content_facet_attributes.blank? || @host&.content_facet.blank? ||
4647
(cve_params[:content_view_id].present? && cve_params[:lifecycle_environment_id].present?)
4748
new_cves = nil
4849
if cve_params[:content_view_environments].present? && cve_params[:content_view_environment_ids].blank?

0 commit comments

Comments
 (0)