Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Don't migrate importers/distributors with an empty config #31

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

goosemania
Copy link
Member

There is nothing to migrate to Pulp3 in this case.

closes #5551
https://pulp.plan.io/issues/5551

@@ -286,14 +286,19 @@
all are migrated.
"""
mongo_importer_q = mongo_Q(repo_id=repo.pulp2_repo_id)

# importers with empty config are not needed - nothing to migrate
mongo_importer_q &= mongo_Q(config__ne={})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might worth adding a check if feed is null, wdyt? remotes in pulp3 are tightly coupled with the feed

There is nothing to migrate to Pulp3 in this case.

closes #5551
https://pulp.plan.io/issues/5551
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants