mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 23:50:03 -06:00
migration: fix import of wsgiref.util
https://fedorahosted.org/freeipa/ticket/4293 Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
parent
c4d79eaf59
commit
86ff28fac8
@ -23,7 +23,7 @@ Password migration script
|
||||
import cgi
|
||||
import errno
|
||||
import glob
|
||||
import wsgiref
|
||||
from wsgiref.util import request_uri
|
||||
|
||||
from ipapython.ipa_log_manager import root_logger
|
||||
from ipapython.ipautil import get_ipa_basedn
|
||||
@ -37,7 +37,7 @@ def wsgi_redirect(start_response, loc):
|
||||
return []
|
||||
|
||||
def get_ui_url(environ):
|
||||
full_url = wsgiref.util.request_uri(environ)
|
||||
full_url = request_uri(environ)
|
||||
index = full_url.rfind(environ.get('SCRIPT_NAME',''))
|
||||
if index == -1:
|
||||
raise ValueError('Cannot strip the script URL from full URL "%s"' % full_url)
|
||||
|
Loading…
Reference in New Issue
Block a user