1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make main() calls conditional - web_infrastructure (#3653)

This commit is contained in:
Fabio Alessandro Locati 2016-12-05 16:24:34 +00:00 committed by Matt Clay
parent cbe3f4e5e1
commit 6f019c1066
3 changed files with 7 additions and 4 deletions

View file

@ -221,4 +221,5 @@ def main():
module.exit_json(**result)
main()
if __name__ == '__main__':
main()

View file

@ -147,4 +147,6 @@ def main():
# import module snippets
from ansible.module_utils.basic import *
main()
if __name__ == '__main__':
main()

View file

@ -385,5 +385,5 @@ def main():
module.exit_json(changed=True, meta=ret)
main()
if __name__ == '__main__':
main()