mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
Ensure environment is inherited properly (task->block/include->play)
This commit is contained in:
parent
937584cd52
commit
76ae577519
3 changed files with 7 additions and 6 deletions
|
@ -383,8 +383,8 @@ class Task(Base, Conditional, Taggable, Become):
|
|||
Override for the 'tags' getattr fetcher, used from Base.
|
||||
'''
|
||||
environment = self._attributes['environment']
|
||||
if environment is None:
|
||||
environment = self._get_parent_attribute('environment')
|
||||
|
||||
parent_environment = self._get_parent_attribute('environment', extend=True)
|
||||
if parent_environment is not None:
|
||||
environment = self._extend_value(environment, parent_environment)
|
||||
return environment
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue