mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
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:
parent
33e9d67801
commit
bf9ed0263a
15 changed files with 61 additions and 13 deletions
|
@ -27,6 +27,7 @@ class ActionModule(ActionBase):
|
|||
''' Fail with custom message '''
|
||||
|
||||
TRANSFERS_FILES = False
|
||||
_VALID_ARGS = frozenset(('fail_msg', 'msg', 'that'))
|
||||
|
||||
def run(self, tmp=None, task_vars=None):
|
||||
if task_vars is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue