mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -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
|
@ -112,8 +112,8 @@ import os
|
|||
import re
|
||||
import tempfile
|
||||
import json
|
||||
import urllib
|
||||
|
||||
from ansible.module_utils.six.moves.urllib.parse import urlencode
|
||||
|
||||
|
||||
class StackiHost:
|
||||
|
@ -152,7 +152,7 @@ class StackiHost:
|
|||
|
||||
# Get Final CSRF and Session ID
|
||||
login_req = self.do_request(self.module, login_endpoint, headers=header,
|
||||
payload=urllib.urlencode(auth_creds), method="POST")
|
||||
payload=urlencode(auth_creds), method='POST')
|
||||
|
||||
cookie_f = login_req.headers.get('Set-Cookie').split(';')
|
||||
csrftoken = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue