Change the use of a mutable arg for a default value for locals

pull/4420/head
James Cammarata 2015-06-19 23:04:35 -04:00
parent 0d92599d18
commit fc5be30c2f
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class AnsibleJ2Vars:
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
well as several dictionaries of variables representing