Skip to content

Commit

Permalink
Fixes #38156 - Do not call content on root during re-import
Browse files Browse the repository at this point in the history
Affects only RHEL content when the repository being imported already
exists on the importing Katello instance.

This might be the case because it has been added as a "Red Hat
Repository" on both instances from a manifest file. Or else, because
this is a re-import of a newer export state to update a previously
imported state.
  • Loading branch information
quba42 authored and sbernhard committed Jan 24, 2025
1 parent 614ec0b commit eca1682
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def generate!

root = product.root_repositories.find do |r|
if repo.content&.id && repo.redhat
repo_exists = r.content.cp_content_id == repo.content.id &&
repo_exists = r.library_instance.content.cp_content_id == repo.content.id &&
r.arch == repo.arch &&
r.major == repo.major &&
r.minor == repo.minor
Expand Down

0 comments on commit eca1682

Please sign in to comment.