Ensure action plugins accept only valid args (#44779)

* Ensure action plugins accept only valid args

This fixes #25424
This also fixes #44773

* Add missing parameters, use private _VALID_ARGS
This commit is contained in:
Dag Wieers 2018-08-30 15:40:36 +02:00 committed by Brian Coca
commit bf9ed0263a
15 changed files with 61 additions and 13 deletions

View file

@ -27,6 +27,7 @@ from ansible.utils.vars import isidentifier
class ActionModule(ActionBase):
TRANSFERS_FILES = False
_VALID_ARGS = frozenset(('aggregate', 'data', 'per_host'))
# TODO: document this in non-empty set_stats.py module
def run(self, tmp=None, task_vars=None):