mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
made def main
an explicit requirement
This commit is contained in:
parent
a2bef45cf6
commit
de7b0e9da1
1 changed files with 1 additions and 0 deletions
|
@ -695,6 +695,7 @@ The following checklist items are important guidelines for people who want to c
|
||||||
* The return structure should be consistent, even if NA/None are used for keys normally returned under other options.
|
* The return structure should be consistent, even if NA/None are used for keys normally returned under other options.
|
||||||
* Are module actions idempotent? If not document in the descriptions or the notes.
|
* Are module actions idempotent? If not document in the descriptions or the notes.
|
||||||
* Import module snippets `from ansible.module_utils.basic import *` at the bottom, conserves line numbers for debugging.
|
* Import module snippets `from ansible.module_utils.basic import *` at the bottom, conserves line numbers for debugging.
|
||||||
|
* The module must have a `main` function that wraps the normal execution.
|
||||||
* Call your :func:`main` from a conditional so that it would be possible to
|
* Call your :func:`main` from a conditional so that it would be possible to
|
||||||
import them into unittests in the future example::
|
import them into unittests in the future example::
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue