Call main() from a conditional

See ansible docs[1] for more information.

[1] http://docs.ansible.com/ansible/developing_modules.html

Change-Id: I21062e1eb47632ac39e35d7267dab96b62500743
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-05-26 13:31:11 -04:00
parent f20c52a44b
commit b6ebba9545
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
3 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

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