Skip to content

Commit

Permalink
Fix excludes list on collection sync (#1374)
Browse files Browse the repository at this point in the history
fixes: #1381
(cherry picked from commit 775f8cc)
  • Loading branch information
newswangerd authored and patchback[bot] committed Feb 27, 2023
1 parent 7f1afbc commit 68a880f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/1381.bugfix
@@ -0,0 +1 @@
Fix exclude list when syncing from galaxy_ng.
2 changes: 1 addition & 1 deletion pulp_ansible/app/tasks/collections.py
Expand Up @@ -577,7 +577,7 @@ async def _add_collection_version(self, api_version, collection_version_url, met
)
cv_unique = attrgetter("namespace", "name", "version")(collection_version)
fullname, version = f"{cv_unique[0]}.{cv_unique[1]}", cv_unique[2]
if fullname in self.exclude_info and version in self.exclude_info[fullname]:
if fullname in self.exclude_info and Version(version) in self.exclude_info[fullname]:
return
if cv_unique in self.already_synced:
return
Expand Down

0 comments on commit 68a880f

Please sign in to comment.