Call main in conditional way - packaging (#5826)

This commit is contained in:
Fabio Alessandro Locati 2016-12-05 18:00:18 +00:00 committed by Matt Clay
commit 5edbbabe0b
7 changed files with 16 additions and 7 deletions

View file

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

View file

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