Properly copy the role path when the IncludeRole object is copied

This exposed some additional errors in logic in IncludeFile, which
had to be fixed to deal with the fact that the role path (unlike paths
from includes) are always absolute paths.

Fixes #27345
This commit is contained in:
James Cammarata 2017-08-03 15:01:36 -05:00 committed by Brian Coca
commit e0b0e61b32
2 changed files with 5 additions and 4 deletions

View file

@ -127,6 +127,7 @@ class IncludeRole(TaskInclude):
new_me._from_files = self._from_files.copy()
new_me._parent_role = self._parent_role
new_me._role_name = self._role_name
new_me._role_path = self._role_path
return new_me