Merge "Update the Custom Action documentation to use mistral-lib"

This commit is contained in:
Zuul 2018-07-24 07:58:52 +00:00 committed by Gerrit Code Review
commit b123bb56e6
1 changed files with 5 additions and 10 deletions

View File

@ -6,9 +6,9 @@ How to write a Custom Action
.. code-block:: python
from mistral.actions import base
from mistral_lib import actions
class RunnerAction(base.Action):
class RunnerAction(actions.Action):
def __init__(self, param):
# store the incoming params
self.param = param
@ -27,15 +27,10 @@ How to write a Custom Action
mistral.actions =
example.runner = my.mistral_plugins.somefile:RunnerAction
3. Reinstall Mistral if it was installed in system (not in virtualenv).
3. Install the Python package containing the action. If this was added to
Mistral itself it will need to be reinstalled.
4. Run db-sync tool via either
.. code-block:: console
$ tools/sync_db.sh --config-file <path-to-config>
or
4. Run the following command so Mistral discovers the new action
.. code-block:: console