Update module_utils "import" to the new-style

Fixes #505
This commit is contained in:
Toshio Kuratomi 2015-05-18 12:08:15 -07:00 committed by Matt Clay
parent 8d618fc552
commit efc63d9c40
5 changed files with 22 additions and 10 deletions

View file

@ -412,5 +412,7 @@ def main():
else: else:
module.exit_json(changed=False) module.exit_json(changed=False)
# <<INCLUDE_ANSIBLE_MODULE_COMMON>> from ansible.module_utils.basic import *
main()
if __name__ == '__main__':
main()

View file

@ -1684,6 +1684,8 @@ def main():
module.exit_json(**result) module.exit_json(**result)
# include magic from lib/ansible/module_common.py # include magic from lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>> from ansible.module_utils.basic import *
main()
if __name__ == '__main__':
main()

View file

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

View file

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

View file

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