mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed urlparse and urlencode calls
This commit is contained in:
parent
802dbdb965
commit
f3bfdb561b
1 changed files with 2 additions and 2 deletions
|
@ -355,7 +355,7 @@ def query(params=None, setname=None, requesturl=None, location=None,
|
|||
method = 'GET'
|
||||
region = location
|
||||
service = 'ec2'
|
||||
canonical_uri = urlparse.urlparse(requesturl).path
|
||||
canonical_uri = _urlparse(requesturl).path
|
||||
host = endpoint.strip()
|
||||
|
||||
# Create a date for headers and the credential string
|
||||
|
@ -377,7 +377,7 @@ def query(params=None, setname=None, requesturl=None, location=None,
|
|||
|
||||
keys = sorted(params_with_headers.keys())
|
||||
values = map(params_with_headers.get, keys)
|
||||
querystring = urllib.urlencode(list(zip(keys, values)))
|
||||
querystring = _urlencode(list(zip(keys, values)))
|
||||
querystring = querystring.replace('+', '%20')
|
||||
|
||||
canonical_request = method + '\n' + canonical_uri + '\n' + \
|
||||
|
|
Loading…
Add table
Reference in a new issue