Fix packaging/os modules for wildcard imports and get_exception

This commit is contained in:
Toshio Kuratomi 2018-02-01 16:30:08 -08:00
commit a5b80464df
17 changed files with 48 additions and 46 deletions

View file

@ -70,6 +70,8 @@ EXAMPLES = '''
import re
from ansible.module_utils.basic import AnsibleModule
def a_valid_tap(tap):
'''Returns True if the tap is valid.'''
@ -248,8 +250,6 @@ def main():
else:
module.exit_json(changed=changed, msg=msg)
# this is magic, see lib/ansible/module_common.py
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()