mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 16:11:22 -07:00
parent
306c3508b2
commit
437babbd07
1 changed files with 2 additions and 0 deletions
|
@ -106,6 +106,8 @@ class Task(Base, Conditional, Taggable, Become):
|
||||||
path = ""
|
path = ""
|
||||||
if hasattr(self, '_ds') and hasattr(self._ds, '_data_source') and hasattr(self._ds, '_line_number'):
|
if hasattr(self, '_ds') and hasattr(self._ds, '_data_source') and hasattr(self._ds, '_line_number'):
|
||||||
path = "%s:%s" % (self._ds._data_source, self._ds._line_number)
|
path = "%s:%s" % (self._ds._data_source, self._ds._line_number)
|
||||||
|
elif hasattr(self._parent._play, '_ds') and hasattr(self._parent._play._ds, '_data_source') and hasattr(self._parent._play._ds, '_line_number'):
|
||||||
|
path = "%s:%s" % (self._parent._play._ds._data_source, self._parent._play._ds._line_number)
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def get_name(self):
|
def get_name(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue