Coherence between example and text (use of to_native) (#58279)
This commit is contained in:
parent
67c251d13c
commit
4376e88849
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ You must write your plugin in Python so it can be loaded by the ``PluginLoader``
|
|||
Raising errors
|
||||
==============
|
||||
|
||||
You should return errors encountered during plugin execution by raising ``AnsibleError()`` or a similar class with a message describing the error. When wrapping other exceptions into error messages, you should always use the ``to_text`` Ansible function to ensure proper string compatibility across Python versions:
|
||||
You should return errors encountered during plugin execution by raising ``AnsibleError()`` or a similar class with a message describing the error. When wrapping other exceptions into error messages, you should always use the ``to_native`` Ansible function to ensure proper string compatibility across Python versions:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
|
Loading…
Reference in a new issue