Skip to content

Commit

Permalink
callback_whitelist is deprecated
Browse files Browse the repository at this point in the history
so let's set both to be backwards compatible and drop callback_whitelist
once 2.15 is out

Signed-off-by: Tomas Tomecek <[email protected]>
  • Loading branch information
TomasTomecek committed Mar 31, 2022
1 parent 156ef3c commit 3964aa6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible_bender/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,16 @@
is_ansibles_python_2

logger = logging.getLogger(__name__)
# callback_whitelist got renamed to callbacks_enabled in ansible
# drop callback_whitelist once 2.15 is released
# https://docs.ansible.com/ansible/latest/reference_appendices/config.html#callbacks-enabled
A_CFG_TEMPLATE = """\
[defaults]
# when user is changed, ansible might not be able to write to /.ansible
remote_tmp = /tmp
callback_plugins={0}
callback_whitelist=snapshoter\n
callbacks_enabled=snapshoter\n
"""


Expand Down

0 comments on commit 3964aa6

Please sign in to comment.