mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Modify a few more modules to not conditionalize urllib(2) import.
This commit is contained in:
committed by
Matt Clay
parent
16bd2c7357
commit
5afc244147
@@ -31,7 +31,6 @@ description:
|
||||
version_added: "1.6"
|
||||
author: Seth Edwards
|
||||
requirements:
|
||||
- urllib2
|
||||
- base64
|
||||
options:
|
||||
user:
|
||||
@@ -107,11 +106,7 @@ EXAMPLES = '''
|
||||
'''
|
||||
|
||||
|
||||
try:
|
||||
import urllib2
|
||||
HAS_URLLIB2 = True
|
||||
except ImportError:
|
||||
HAS_URLLIB2 = False
|
||||
import urllib2
|
||||
|
||||
def post_annotation(module):
|
||||
user = module.params['user']
|
||||
|
||||
Reference in New Issue
Block a user