mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -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
|
@ -21,7 +21,7 @@ import os
|
|||
import re
|
||||
import shlex
|
||||
|
||||
from ansible.errors import AnsibleError, AnsibleAction, AnsibleActionDone, AnsibleActionFail, AnsibleActionSkip
|
||||
from ansible.errors import AnsibleError, AnsibleAction, _AnsibleActionDone, AnsibleActionFail, AnsibleActionSkip
|
||||
from ansible.module_utils._text import to_bytes, to_native, to_text
|
||||
from ansible.plugins.action import ActionBase
|
||||
from ansible.plugins.shell.powershell import exec_wrapper
|
||||
|
@ -112,7 +112,7 @@ class ActionModule(ActionBase):
|
|||
script_cmd = ' '.join([env_string, target_command])
|
||||
|
||||
if self._play_context.check_mode:
|
||||
raise AnsibleActionDone()
|
||||
raise _AnsibleActionDone()
|
||||
|
||||
script_cmd = self._connection._shell.wrap_for_exec(script_cmd)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue