You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
Discuss making module requirement of including a function called main(). There is no explicit mention that a module must include a call to main(), to call it a requirement, let's ensure we have consensus, and then explicitly document it.
There is a benefit to requiring it, rather than just guarding the code to execute under if __name__ == "__main__":, in that ansible-testing can import the module (mocking any missing imports) and invoke main so that AnsibleModule is executed. Then we can gather the full argument_spec as passed to AnsibleModule and do doc/arg_spec comparisons for things where required/default are specified, and to ensure docs match the arg_spec.
Please leave a comment regarding any agenda item you wish to discuss. If you don't show up for the meeting, your item will be skipped.
If your IRC nick is different from your Github username, leave that as well.
The text was updated successfully, but these errors were encountered: