mirror of
https://github.com/ansible/ansible.git
synced 2025-11-30 23:16:08 +07:00
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:
@@ -0,0 +1,3 @@
|
||||
---
|
||||
minor_changes:
|
||||
- script - remove the currently unsupported ``decrypt`` argument from the module documentation (https://github.com/ansible/ansible/issues/86067).
|
||||
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user