summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDougal Matthews <dougal@redhat.com>2018-07-23 14:14:40 +0100
committerDougal Matthews <dougal@redhat.com>2018-07-23 14:14:40 +0100
commite1e6c7a0cf58b6653469facf3cd8e529b9a8bf2c (patch)
tree428406d09ba36f3c1bd78b94ca5e7064010a4d7c
parent38bfd91a2242de7b2d03673465e6f6aae04cfe64 (diff)
Update the Custom Action documentation to use mistral-lib
We should have updated this some time ago. Importing mistral itself hasn't been the best way to write actions for a while. Change-Id: I27df8865f8fef81fcfd1cb3de1a2bde6c6281cf6
Notes
Notes (review): Code-Review+2: Andras Kovi <akovi@nokia.com> Code-Review+2: Renat Akhmerov <renat.akhmerov@gmail.com> Workflow+1: Renat Akhmerov <renat.akhmerov@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 24 Jul 2018 07:58:52 +0000 Reviewed-on: https://review.openstack.org/584868 Project: openstack/mistral Branch: refs/heads/master
-rw-r--r--doc/source/contributor/creating_custom_action.rst15
1 files changed, 5 insertions, 10 deletions
diff --git a/doc/source/contributor/creating_custom_action.rst b/doc/source/contributor/creating_custom_action.rst
index 49d5eb1..23b50c7 100644
--- a/doc/source/contributor/creating_custom_action.rst
+++ b/doc/source/contributor/creating_custom_action.rst
@@ -6,9 +6,9 @@ How to write a Custom Action
6 6
7 .. code-block:: python 7 .. code-block:: python
8 8
9 from mistral.actions import base 9 from mistral_lib import actions
10 10
11 class RunnerAction(base.Action): 11 class RunnerAction(actions.Action):
12 def __init__(self, param): 12 def __init__(self, param):
13 # store the incoming params 13 # store the incoming params
14 self.param = param 14 self.param = param
@@ -27,15 +27,10 @@ How to write a Custom Action
27 mistral.actions = 27 mistral.actions =
28 example.runner = my.mistral_plugins.somefile:RunnerAction 28 example.runner = my.mistral_plugins.somefile:RunnerAction
29 29
303. Reinstall Mistral if it was installed in system (not in virtualenv). 303. Install the Python package containing the action. If this was added to
31 Mistral itself it will need to be reinstalled.
31 32
324. Run db-sync tool via either 334. Run the following command so Mistral discovers the new action
33
34 .. code-block:: console
35
36 $ tools/sync_db.sh --config-file <path-to-config>
37
38 or
39 34
40 .. code-block:: console 35 .. code-block:: console
41 36