diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2018-01-22 17:44:22 -0800 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2018-01-22 23:36:34 -0800 |
commit | 32eef490625b4e639428b06047725288f0915047 (patch) | |
tree | 635287e56075056b40f0a8953c578e8e1f37295c /lib/ansible/errors | |
parent | ca8e4c806a70eab259fb5d3036e3295b0e7880a4 (diff) | |
download | ansible-32eef490625b4e639428b06047725288f0915047.tar.gz |
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.
Diffstat (limited to 'lib/ansible/errors')
-rw-r--r-- | lib/ansible/errors/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/errors/__init__.py b/lib/ansible/errors/__init__.py index 73dd4d0c3e..cbdd1db2c6 100644 --- a/lib/ansible/errors/__init__.py +++ b/lib/ansible/errors/__init__.py @@ -254,6 +254,7 @@ class AnsibleFileNotFound(AnsibleRuntimeError): # These Exceptions are temporary, using them as flow control until we can get a better solution. # DO NOT USE as they will probably be removed soon. +# We will port the action modules in our tree to use a context manager instead. class AnsibleAction(AnsibleRuntimeError): ''' Base Exception for Action plugin flow control ''' @@ -284,6 +285,6 @@ class AnsibleActionFail(AnsibleAction): self.result.update({'failed': True, 'msg': message}) -class AnsibleActionDone(AnsibleAction): +class _AnsibleActionDone(AnsibleAction): ''' an action runtime early exit''' pass |