summaryrefslogtreecommitdiff
path: root/lib/ansible/errors
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2018-01-22 17:44:22 -0800
committerToshio Kuratomi <a.badger@gmail.com>2018-01-22 23:36:34 -0800
commit32eef490625b4e639428b06047725288f0915047 (patch)
tree635287e56075056b40f0a8953c578e8e1f37295c /lib/ansible/errors
parentca8e4c806a70eab259fb5d3036e3295b0e7880a4 (diff)
downloadansible-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__.py3
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