diff --git a/CHANGES/1381.bugfix b/CHANGES/1381.bugfix new file mode 100644 index 000000000..477e018b9 --- /dev/null +++ b/CHANGES/1381.bugfix @@ -0,0 +1 @@ +Fix exclude list when syncing from galaxy_ng. \ No newline at end of file diff --git a/pulp_ansible/app/tasks/collections.py b/pulp_ansible/app/tasks/collections.py index 7ddd8ec38..27dc8c65b 100644 --- a/pulp_ansible/app/tasks/collections.py +++ b/pulp_ansible/app/tasks/collections.py @@ -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