Comment: Updated a logical expression. Added a changelog fragment.

pull/81511/head
OpenRefactory, Inc 1 year ago
parent 3e9d374fda
commit 45bbda5f1f

@ -0,0 +1,2 @@
bugfixes:
- collection dependency resolver - previous code had the same operand on both sides of a logical expression. Fix now updates the operand in the right side of the logical expression (https://github.com/ansible/ansible/pull/81511).

@ -330,10 +330,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'])

Loading…
Cancel
Save