mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Consider parent also when comparing IncludedFile (#37083)
* Consider parent also when comparing IncludedFile * Add new tests for IncludedFile and convert to pytest
This commit is contained in:
@@ -46,7 +46,7 @@ class IncludedFile:
|
||||
self._hosts.append(host)
|
||||
|
||||
def __eq__(self, other):
|
||||
return other._filename == self._filename and other._args == self._args
|
||||
return other._filename == self._filename and other._args == self._args and other._task._parent._uuid == self._task._parent._uuid
|
||||
|
||||
def __repr__(self):
|
||||
return "%s (%s): %s" % (self._filename, self._args, self._hosts)
|
||||
|
||||
Reference in New Issue
Block a user