Remove ineffective codes from the FaultWrapper middleware

These three variables are initialized but unused.

Closes-Bug: #1967683
Change-Id: I5bab310fef66faa3291e7651106010761f636bc5
This commit is contained in:
Takashi Kajinami 2022-04-04 00:18:55 +09:00
parent d42220cdc8
commit ed85f5924c
1 changed files with 0 additions and 5 deletions

View File

@ -63,11 +63,6 @@ class Fault(webob.exc.HTTPException):
if 'AWSAccessKeyId' not in req.params:
raise webob.exc.HTTPBadRequest()
user_id, _sep, project_id = req.params['AWSAccessKeyId'].partition(':')
project_id = project_id or user_id
remote_address = getattr(req, 'remote_address', '127.0.0.1')
if CONF.use_forwarded_for:
remote_address = req.headers.get('X-Forwarded-For', remote_address)
resp = ec2_error_response(common_context.generate_request_id(), code,
message=message, status=status)