summaryrefslogtreecommitdiff
path: root/changelogs/fragments/ansible-test-main-check.yml
blob: d063682a3020eef86efefff91e671af36dc436d5 (plain)
1
2
3
4
5
6
minor_changes:
  - ansible-test - The ``validate-modules`` sanity test no longer enforces the ``missing-if-name-main``, ``last-line-main-call`` or ``missing-main-call`` checks
                   on non-deleted Ansible modules. Modules are still required to instantiate ``AnsibleModule`` when ``__name__ == '__main__'``.
  - ansible-test - The ``import`` sanity test now requires that Ansible modules guard instantiation of ``AnsibleModule`` with a ``if __name__ == '__main__'``
                   conditional, or equivalent logic.
  - ansible-test - The ``import`` sanity test now requires that non-modules do not instantiate ``AnsibleModule`` on import.