diff --git a/lib/ansible/template/vars.py b/lib/ansible/template/vars.py index 16efe9bff54..96051f45741 100644 --- a/lib/ansible/template/vars.py +++ b/lib/ansible/template/vars.py @@ -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