Skip to content

Commit 89972c3

Browse files
committed
Fixes syntax
1 parent 0c379f9 commit 89972c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/platform/app/app_roles.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,17 @@ defined by roles dependencies.
7474
The ``on_event`` callback provides 3 arguments, when it is called:
7575

7676
- ``config``, which is the configuration of the role;
77-
- ``key``, which reflects the trigger event:
77+
- ``key``, which reflects the trigger event:
7878
- ``config.apply`` if the callback was triggered by a configuration update;
7979
- ``box.status`` if it was triggered by the ``box.status`` system event.
80-
- ``value``, which shows and logs the information about the instance status as in the trigger ``box.status`` system event.
80+
- ``value``, which shows and logs the information about the instance status as in the trigger ``box.status`` system event.
8181
If the callback is triggered by a configuration update, the ``value`` shows the information of the most recent ``box.status`` system event.
8282

8383
.. NOTE::
8484

8585
- All ``on_event`` callbacks with the ``config.apply`` key are executed as a part of the configuration
8686
process. Process statuses ``ready`` or ``check_warnings`` are reached only after all such ``on_event`` callbacks are done.
87+
8788
- All ``on_event`` callbacks are executed inside of a ``pcall``. If an error is raised for a callback, it is logged with ``error`` level
8889
and the series execution continues.
8990

0 commit comments

Comments
 (0)