mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Small cleanups. * Import url(lib|parse|lib2) if needed by the module rather than relying on module_utils.urls to do so. * Remove stdlib modules from requirements * Use the if __name__ conditional for invoking main()
This commit is contained in:
parent
5f27a073ba
commit
2e7dcf3317
2 changed files with 9 additions and 4 deletions
|
@ -60,9 +60,10 @@ EXAMPLES = '''
|
|||
# Example action to ensure a key is not present in the db
|
||||
- rpm_key: state=absent key=DEADB33F
|
||||
'''
|
||||
import re
|
||||
import syslog
|
||||
import os.path
|
||||
import re
|
||||
import urllib2
|
||||
import tempfile
|
||||
|
||||
def is_pubkey(string):
|
||||
|
@ -203,4 +204,5 @@ def main():
|
|||
# import module snippets
|
||||
from ansible.module_utils.basic import *
|
||||
from ansible.module_utils.urls import *
|
||||
main()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue