mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 01:14:03 -07:00
Fixed import of urlencode and pathname2url from urllib for python3 (#24424)
This commit is contained in:
parent
98a8b967d2
commit
b65ebf3519
26 changed files with 66 additions and 69 deletions
|
@ -77,7 +77,7 @@ EXAMPLES = '''
|
|||
revision: '4.2'
|
||||
'''
|
||||
|
||||
import urllib
|
||||
from ansible.module_utils.six.moves.urllib.parse import urlencode
|
||||
|
||||
# ===========================================
|
||||
# Module execution.
|
||||
|
@ -122,7 +122,7 @@ def main():
|
|||
module.exit_json(changed=True)
|
||||
|
||||
# Send the data to airbrake
|
||||
data = urllib.urlencode(params)
|
||||
data = urlencode(params)
|
||||
response, info = fetch_url(module, url, data=data)
|
||||
if info['status'] == 200:
|
||||
module.exit_json(changed=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue