Skip to content

Commit

Permalink
Fixes #37899 - Send proper EnvironmentDTO from hypervisors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz committed Oct 9, 2024
1 parent dceb439 commit d426d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/katello/host/subscription_facet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def candlepin_environments
{ :id => cve.content_view.cp_environment_id(cve.lifecycle_environment) }
end
else
self.host.organization.default_content_view.cp_environment_id(self.host.organization.library)
[{ :id => self.host.organization.default_content_view.cp_environment_id(self.host.organization.library) }]
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/models/host/subscription_facet_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def test_candlepin_environment_id

def test_candlepin_environment_id_no_content
subscription_facet.host.content_facet.destroy!
assert_equal subscription_facet.reload.candlepin_environments.first, ContentViewEnvironment.where(:content_view_id => org.default_content_view,
assert_equal subscription_facet.reload.candlepin_environments.first[:id], ContentViewEnvironment.where(:content_view_id => org.default_content_view,
:environment_id => org.library).first.cp_id
end

Expand Down

0 comments on commit d426d3e

Please sign in to comment.