mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-30 12:59:09 -07:00
adds stub API docs in a single file (#46663)
* adds stub API docs in a single file
This commit is contained in:
parent
e1cfc2500c
commit
9764f32513
11 changed files with 118 additions and 612 deletions
|
@ -44,7 +44,7 @@ Python tips
|
|||
|
||||
* When fetching URLs, use ``fetch_url`` or ``open_url`` from ``ansible.module_utils.urls``. Do not use ``urllib2``, which does not natively verify TLS certificates and so is insecure for https.
|
||||
* Include a ``main`` function that wraps the normal execution.
|
||||
* Call your :func:`main` from a conditional so you can import it into unit tests - for example:
|
||||
* Call your ``main`` function from a conditional so you can import it into unit tests - for example:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue