Merge "Replace urllib.quote() with six.moves.urllib.parse.quote()"
This commit is contained in:
commit
d59f66b00c
@ -19,7 +19,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import urllib
|
from six.moves import urllib
|
||||||
|
|
||||||
import pecan
|
import pecan
|
||||||
from pecan import rest
|
from pecan import rest
|
||||||
@ -124,7 +124,7 @@ class ResourcesController(rest.RestController):
|
|||||||
# In case we have special character in resource id, for example, swift
|
# In case we have special character in resource id, for example, swift
|
||||||
# can generate samples with resource id like
|
# can generate samples with resource id like
|
||||||
# 29f809d9-88bb-4c40-b1ba-a77a1fcf8ceb/glance
|
# 29f809d9-88bb-4c40-b1ba-a77a1fcf8ceb/glance
|
||||||
resource_id = urllib.unquote(resource_id)
|
resource_id = urllib.parse.unquote(resource_id)
|
||||||
|
|
||||||
authorized_project = rbac.get_limited_to_project(pecan.request.headers)
|
authorized_project = rbac.get_limited_to_project(pecan.request.headers)
|
||||||
resources = list(pecan.request.storage_conn.get_resources(
|
resources = list(pecan.request.storage_conn.get_resources(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user