mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Modify a few more modules to not conditionalize urllib(2) import.
This commit is contained in:
parent
16bd2c7357
commit
5afc244147
4 changed files with 10 additions and 19 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue