Fix two errors in YAML example and a error in action doc
Errors list: 1. "on-complete" is incorrectly written as "on_complete". 2. Use ":" will raise "ERROR (app) Definition could not be parsed: mapping values are not allowed here". 3. Action note description is out of frame. Change-Id: I7f4e8c7755f11a1f0a040f14481e5f7374a1d87f
This commit is contained in:
parent
d7a2735f17
commit
769c3fea73
@ -39,7 +39,4 @@ Ad-hoc actions are always created as a wrapper around any other existing
|
||||
system actions and their main goal is to simplify using same actions
|
||||
many times with similar pattern.
|
||||
|
||||
.. note:: Nested ad-hoc actions currently are not supported (i.e. ad-hoc
|
||||
action around another ad-hoc action).
|
||||
|
||||
.. note:: More about actions - :ref:`actions-dsl`.
|
||||
.. note:: Nested ad-hoc actions currently are not supported (i.e. ad-hoc action around another ad-hoc action). More about actions - :ref:`actions-dsl`.
|
||||
|
@ -83,10 +83,10 @@ YAML example
|
||||
- send_success_email
|
||||
send_error_email:
|
||||
action: send_email to='admin@mysite.org' body='Failed to create a VM'
|
||||
on_complete:
|
||||
on-complete:
|
||||
- fail
|
||||
send_success_email:
|
||||
action: send_email to='admin@mysite.org' body='Vm is successfully created and its id: <% $.vm_id %>'
|
||||
action: send_email to='admin@mysite.org' body='Vm is successfully created and its id is <% $.vm_id %>'
|
||||
|
||||
Reverse workflow
|
||||
----------------
|
||||
|
Loading…
Reference in New Issue
Block a user