From 7da24ca7b0668eede01e0a7935c38f4e002c2648 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 3 Jun 2025 23:37:33 -0700 Subject: [PATCH] Fix logic error in ansible-galaxy (#85258) Co-authored-by: OpenRefactory, Inc <56681071+openrefactory@users.noreply.github.com> Co-authored-by: Munawar --- lib/ansible/galaxy/api.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/ansible/galaxy/api.py b/lib/ansible/galaxy/api.py index 021d56f0254..21a3e05f90b 100644 --- a/lib/ansible/galaxy/api.py +++ b/lib/ansible/galaxy/api.py @@ -337,10 +337,7 @@ class GalaxyAPI: if not isinstance(other_galaxy_api, self.__class__): return NotImplemented - return ( - self._priority > other_galaxy_api._priority or - self.name < self.name - ) + return self._priority > other_galaxy_api._priority @property # type: ignore[misc] # https://github.com/python/mypy/issues/1362 @g_connect(['v1', 'v2', 'v3'])