-
Notifications
You must be signed in to change notification settings - Fork 123
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
Adopt new "shared_resources" / "exclusive_resources" API #2101
Conversation
Attached issue: https://pulp.plan.io/issues/9255 |
pulp_rpm/app/viewsets.py
Outdated
@@ -137,7 +137,7 @@ def sync(self, request, pk): | |||
|
|||
result = dispatch( | |||
tasks.synchronize, | |||
[repository, remote], | |||
exclusive_resources=[repository, remote], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe, the remote might be shared here.
@@ -328,7 +333,8 @@ def _process_config(self, config): | |||
dest_repo = NamedModelViewSet().get_resource(entry["dest_repo"], RpmRepository) | |||
r["source_repo_version"] = source_version.pk | |||
r["dest_repo"] = dest_repo.pk | |||
repos.extend((source_version.repository, dest_repo)) | |||
shared_repos.append(source_version.repository) | |||
exclusive_repos.append(dest_repo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Do you want to flip the flag in the CI to actually trigger this? |
@mdellweg I think so - but maybe in a followup PR so that we can unblock the installer |
closes: #9255
https://pulp.plan.io/issues/9255