mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
if __name__ does work with ansible modules
This commit is contained in:
parent
e360582c4a
commit
945447e392
2 changed files with 1 additions and 4 deletions
|
@ -568,6 +568,5 @@ def main():
|
|||
# import module snippets
|
||||
from ansible.module_utils.basic import *
|
||||
|
||||
# FIXME: if __name__ == "__main__": ?
|
||||
if "ANSIBLE_IN_HAPPY_UNITTEST_LAND" not in os.environ:
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue