From bff948a65bb0db8ac10df5155008e212d37fcc5a Mon Sep 17 00:00:00 2001 From: jctanner Date: Fri, 29 Sep 2023 09:23:45 -0400 Subject: [PATCH] Ignore the "users" field for namespaces during collection sync. (#1594) fixes: #1598 Signed-off-by: James Tanner (cherry picked from commit 4a7c5b00251e6a03ec7da96dfc17e2d9b7262f9f) --- CHANGES/1598.bugfix | 1 + pulp_ansible/app/tasks/collections.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/1598.bugfix diff --git a/CHANGES/1598.bugfix b/CHANGES/1598.bugfix new file mode 100644 index 000000000..cd4c0214f --- /dev/null +++ b/CHANGES/1598.bugfix @@ -0,0 +1 @@ +Ignore the "users" field in namespace data during sync. diff --git a/pulp_ansible/app/tasks/collections.py b/pulp_ansible/app/tasks/collections.py index a7ac663c2..5bbb4b851 100644 --- a/pulp_ansible/app/tasks/collections.py +++ b/pulp_ansible/app/tasks/collections.py @@ -719,7 +719,7 @@ async def _add_namespace(self, name, namespace_sha): else: namespace["links"] = dict() - for key in ("pulp_href", "groups", "id", "related_fields"): + for key in ("pulp_href", "groups", "id", "related_fields", "users"): namespace.pop(key, None) url = namespace.pop("avatar_url", None)