Remove decrypt arg-docs mismatch (#86128)

* Remove decrypt arg-docs mismatch

Removes the use of the arg in the action plugin
and removes the associated doc fragment. Changes
no behavior because the lack of decrypt in the
argspec prevents a value being passed in and
the args.get('decrypt', True) means that it is
always true.

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Patrick Kingston
2025-11-07 10:54:25 -05:00
committed by GitHub
parent 4184d9665e
commit 6a4b199054
3 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
---
minor_changes:
- script - remove the currently unsupported ``decrypt`` argument from the module documentation (https://github.com/ansible/ansible/issues/86067).

View File

@@ -54,6 +54,7 @@ notes:
- This module is also supported for Windows targets.
- If the script returns non-UTF-8 data, it must be encoded to avoid issues. One option is to pipe
the output through C(base64).
- This module will automatically unvault the script.
seealso:
- module: ansible.builtin.shell
- module: ansible.windows.win_shell
@@ -64,7 +65,6 @@ extends_documentation_fragment:
- action_common_attributes
- action_common_attributes.files
- action_common_attributes.raw
- decrypt
attributes:
check_mode:
support: partial

View File

@@ -98,7 +98,7 @@ class ActionModule(ActionBase):
if executable:
executable = to_native(new_module_args['executable'], errors='surrogate_or_strict')
try:
source = self._loader.get_real_file(self._find_needle('files', source), decrypt=self._task.args.get('decrypt', True))
source = self._loader.get_real_file(self._find_needle('files', source))
except AnsibleError as e:
raise AnsibleActionFail(to_native(e))