unconditionally set vars on init to avoid issues with var precedence
This commit is contained in:
parent
5b5c6c4f47
commit
346a9fe87d
1 changed files with 3 additions and 2 deletions
|
@ -77,9 +77,10 @@ class Base:
|
||||||
# and initialize the base attributes
|
# and initialize the base attributes
|
||||||
self._initialize_base_attributes()
|
self._initialize_base_attributes()
|
||||||
|
|
||||||
if self.vars is None:
|
# and init vars, avoid using defaults in field declaration as it lives across plays
|
||||||
self.vars = dict()
|
self.vars = dict()
|
||||||
|
|
||||||
|
|
||||||
# The following three functions are used to programatically define data
|
# The following three functions are used to programatically define data
|
||||||
# descriptors (aka properties) for the Attributes of all of the playbook
|
# descriptors (aka properties) for the Attributes of all of the playbook
|
||||||
# objects (tasks, blocks, plays, etc).
|
# objects (tasks, blocks, plays, etc).
|
||||||
|
|
Loading…
Reference in a new issue