From fc5be30c2fc5ff56d8714a28ffbd7154b9c1372f Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 19 Jun 2015 23:04:35 -0400 Subject: [PATCH] Change the use of a mutable arg for a default value for locals --- lib/ansible/template/vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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