mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Make AnsibleActionDone a private exception
We're going to remove this in the future so mark it private so people are less likely to use it.
This commit is contained in:
parent
ca8e4c806a
commit
32eef49062
4 changed files with 8 additions and 7 deletions
|
@ -26,7 +26,7 @@ import re
|
|||
import tempfile
|
||||
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleError, AnsibleAction, AnsibleActionDone, AnsibleActionFail
|
||||
from ansible.errors import AnsibleError, AnsibleAction, _AnsibleActionDone, AnsibleActionFail
|
||||
from ansible.module_utils._text import to_native, to_text
|
||||
from ansible.module_utils.parsing.convert_bool import boolean
|
||||
from ansible.plugins.action import ActionBase
|
||||
|
@ -105,7 +105,7 @@ class ActionModule(ActionBase):
|
|||
|
||||
if boolean(remote_src, strict=False):
|
||||
result.update(self._execute_module(tmp=tmp, task_vars=task_vars))
|
||||
raise AnsibleActionDone()
|
||||
raise _AnsibleActionDone()
|
||||
else:
|
||||
try:
|
||||
src = self._find_needle('files', src)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue