mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-05-15 22:12:17 +00:00
Fix _AnsibleActionDone deprecation in patch plugin (#687)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com> Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
This commit is contained in:
3
changelogs/fragments/patch_removed.yml
Normal file
3
changelogs/fragments/patch_removed.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
removed_features:
|
||||
- patch - removed deprecated _AnsibleActionDone API (https://github.com/ansible-collections/ansible.posix/pull/687).
|
||||
@@ -20,7 +20,7 @@ __metaclass__ = type
|
||||
|
||||
import os
|
||||
|
||||
from ansible.errors import AnsibleError, AnsibleAction, _AnsibleActionDone, AnsibleActionFail
|
||||
from ansible.errors import AnsibleError, AnsibleAction, AnsibleActionFail
|
||||
from ansible.module_utils.common.text.converters import to_native
|
||||
from ansible.module_utils.parsing.convert_bool import boolean
|
||||
from ansible.plugins.action import ActionBase
|
||||
@@ -46,7 +46,8 @@ class ActionModule(ActionBase):
|
||||
elif remote_src:
|
||||
# everything is remote, so we just execute the module
|
||||
# without changing any of the module arguments
|
||||
raise _AnsibleActionDone(result=self._execute_module(task_vars=task_vars))
|
||||
result.update(self._execute_module(task_vars=task_vars))
|
||||
return result
|
||||
|
||||
try:
|
||||
src = self._find_needle('files', src)
|
||||
|
||||
Reference in New Issue
Block a user