mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 07:24:00 -07:00
Revert "avoid persistent containers in attribute defaults"
This reverts commit 87969868d4
.
found better way to do it
This commit is contained in:
parent
332a008273
commit
c64298de02
9 changed files with 18 additions and 29 deletions
|
@ -33,7 +33,7 @@ class Conditional:
|
|||
to be run conditionally when a condition is met or skipped.
|
||||
'''
|
||||
|
||||
_when = FieldAttribute(isa='list', default='_ansible_container')
|
||||
_when = FieldAttribute(isa='list', default=[])
|
||||
|
||||
def __init__(self, loader=None):
|
||||
# when used directly, this class needs a loader, but we want to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue