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:
Matt Martz
2018-04-18 17:02:14 -05:00
committed by GitHub
parent a08459a814
commit cdb79b0e3a
2 changed files with 103 additions and 50 deletions

View File

@@ -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)