mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Change the use of a mutable arg for a default value for locals
This commit is contained in:
@@ -34,7 +34,7 @@ class AnsibleJ2Vars:
|
|||||||
To facilitate using builtin jinja2 things like range, globals are also handled here.
|
To facilitate using builtin jinja2 things like range, globals are also handled here.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def __init__(self, templar, globals, locals=dict(), *extras):
|
def __init__(self, templar, globals, locals=None, *extras):
|
||||||
'''
|
'''
|
||||||
Initializes this object with a valid Templar() object, as
|
Initializes this object with a valid Templar() object, as
|
||||||
well as several dictionaries of variables representing
|
well as several dictionaries of variables representing
|
||||||
|
|||||||
Reference in New Issue
Block a user