1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

minor fixes

removed unused imports
rearranged basic import
added if/main for testing/importability
This commit is contained in:
Brian Coca 2016-05-31 08:38:43 -04:00 committed by Matt Clay
parent 2ba75b7082
commit beabafa99f

View file

@ -99,10 +99,8 @@ EXAMPLES = '''
''' '''
import shlex
import os
import re import re
import sys from ansible.module_utils.basic import AnsibleModule
def query_package(module, pkgng_path, name, dir_arg): def query_package(module, pkgng_path, name, dir_arg):
@ -352,8 +350,5 @@ def main():
module.exit_json(changed=changed, msg=", ".join(msgs)) module.exit_json(changed=changed, msg=", ".join(msgs))
if __name__ == '__main__':
# import module snippets main()
from ansible.module_utils.basic import *
main()