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:
parent
1849e725ed
commit
de2ca126fb
|
@ -190,5 +190,6 @@ def main():
|
|||
|
||||
from ansible.module_utils.basic import * # noqa
|
||||
|
||||
main()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
# test()
|
||||
|
|
|
@ -71,4 +71,5 @@ def main():
|
|||
|
||||
from ansible.module_utils.basic import * # noqa
|
||||
|
||||
main()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue