mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
minor fixes
removed unused imports rearranged basic import added if/main for testing/importability
This commit is contained in:
@@ -99,10 +99,8 @@ EXAMPLES = '''
|
||||
'''
|
||||
|
||||
|
||||
import shlex
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
def query_package(module, pkgng_path, name, dir_arg):
|
||||
|
||||
@@ -352,8 +350,5 @@ def main():
|
||||
module.exit_json(changed=changed, msg=", ".join(msgs))
|
||||
|
||||
|
||||
|
||||
# import module snippets
|
||||
from ansible.module_utils.basic import *
|
||||
|
||||
main()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user