Update module "imports" to new style

Fixes #1351
This commit is contained in:
Toshio Kuratomi 2015-05-18 11:59:20 -07:00
parent 627593b43a
commit 81b476cd02
3 changed files with 5 additions and 4 deletions

View file

@ -195,7 +195,7 @@ def main():
# this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()

View file

@ -1321,6 +1321,6 @@ def main():
# this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()

View file

@ -160,6 +160,7 @@ def main():
module.exit_json(changed=changed, msg=msg)
# this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
from ansible.module_utils.basic import *
main()
if __name__ == '__main__':
main()