How to write a Custom Action in mistral
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Confirmed
|
Medium
|
Renat Akhmerov |
Bug Description
This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:
- [ ] This doc is inaccurate in this way: ______
- [ ] This is a doc addition request.
- [x] I have a fix to the document that I can paste below including example: input and output.
example runner will raise this exception when using mistral run-action:
# mistral run-action example.runner '{"param": 1}'
{"result": "The action raised an exception [action_ex_id=None, action_cls='<class 'mistral.
fix:
from mistral_lib import actions
class RunnerAction(
def __init__(self, param):
# store the incoming params
self.param = param
def run(self, context):
# return your results here
return {'status': 0}
If you have a troubleshooting or support issue, use the following resources:
- Ask OpenStack: http://
- The mailing list: http://
- IRC: 'openstack' channel on Freenode
-------
Release: 8.1.0.dev129 on 2018-07-23 14:14:40
SHA: f75e7198c61da05
Source: https:/
URL: https:/
Changed in mistral: | |
milestone: | train-1 → train-rc1 |
Changed in mistral: | |
milestone: | train-rc1 → train-rc2 |
Changed in mistral: | |
milestone: | train-rc2 → ussuri-1 |
assignee: | nobody → Renat Akhmerov (rakhmerov) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in mistral: | |
milestone: | ussuri-1 → ussuri-2 |
Changed in mistral: | |
milestone: | ussuri-2 → ussuri-3 |
Changed in mistral: | |
milestone: | ussuri-3 → victoria-1 |
Changed in mistral: | |
milestone: | victoria-1 → wallaby-1 |
Can you please explain in a normal human language what you would like to achieve? :)
It's hard to understand.
For example, what does this mean? "This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit."