rejectlist backportable fix (#79418)

pull/79576/head
Brian Coca 2 years ago committed by GitHub
parent 3ae796bdcf
commit 7337dc978a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- plugin filter now works with rejectlist as documented (still falls back to blacklist if used).

@ -1389,7 +1389,8 @@ def _load_plugin_filter():
# Modules and action plugins share the same blacklist since the difference between the # Modules and action plugins share the same blacklist since the difference between the
# two isn't visible to the users # two isn't visible to the users
try: try:
filters['ansible.modules'] = frozenset(filter_data['module_blacklist']) # reject list was documented but we never changed the code from blacklist, will be deprected in 2.15
filters['ansible.modules'] = frozenset(filter_data.get('module_rejectlist)', filter_data['module_blacklist']))
except TypeError: except TypeError:
display.warning(u'Unable to parse the plugin filter file {0} as' display.warning(u'Unable to parse the plugin filter file {0} as'
u' module_blacklist is not a list.' u' module_blacklist is not a list.'

Loading…
Cancel
Save