Ansible launcher: Fix module main calls

Soon-to-be-released Ansible 2.1 can sometimes hate you for not
surrounding your call to main() with the proper conditional check.
Let's fix that.

Change-Id: If9eca7866d8d2057d200110186e03772cd77a8fb
This commit is contained in:
David Shrewsbury 2016-05-13 12:49:27 -04:00
parent 1849e725ed
commit de2ca126fb
2 changed files with 4 additions and 2 deletions

View File

@ -190,5 +190,6 @@ def main():
from ansible.module_utils.basic import * # noqa
main()
if __name__ == '__main__':
main()
# test()

View File

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