Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assuring pk is present when adding repository content #393

Closed
wants to merge 1 commit into from

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Nov 18, 2019

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

Please be sure you have read our documentation on creating PRs:
https://docs.pulpproject.org/en/3.0/nightly/contributing/pull-request-walkthrough.html

repository=self.repository,
content_id=content_pk,
version_added=self
if content_pk:
Copy link
Contributor

Choose a reason for hiding this comment

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

I am wondering if this fixes a symptom and not the root cause: content is supposed to be a Queryset. How can it happen that a content unit in the DB has no primary key?

Copy link
Member Author

Choose a reason for hiding this comment

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

you are right, I was about to close this PR, as I saw it breaking in another case

@fao89 fao89 closed this Nov 18, 2019
@fao89
Copy link
Member Author

fao89 commented Nov 18, 2019

Addressing issue here:
pulp/pulp_rpm#1519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants