Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
Change-Id: Ice171fb6dc8a3b2d33b1e7e925b1cdefe48381cc
Signed-off-by: Eric Bischoff <[email protected]>
  • Loading branch information
Bischoff authored and bjhuangr committed Dec 14, 2023
1 parent a4954cc commit b58faea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zvmsdk/sdkwsgi/handlers/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def create(req):
return req.response
# Validation is open, so start to validate the admin-token
if 'X-Admin-Token' not in req.headers:
LOG.debug('no X-Admin-Token given in reqeust header')
LOG.debug('no X-Admin-Token given in request header')
raise exception.ZVMUnauthorized()
token_file_path = CONF.wsgi.token_path
admin_token = get_admin_token(token_file_path)
Expand Down Expand Up @@ -96,7 +96,7 @@ def wrap_func(req, *args, **kwargs):

# so, this is for token validation
if 'X-Auth-Token' not in req.headers:
LOG.debug('no X-Auth-Token given in reqeust header')
LOG.debug('no X-Auth-Token given in request header')
raise exception.ZVMUnauthorized()

token_file_path = CONF.wsgi.token_path
Expand All @@ -110,7 +110,7 @@ def wrap_func(req, *args, **kwargs):
LOG.debug('token not valid')
raise exception.ZVMUnauthorized()
except Exception:
LOG.debug('unknown exception occur during token validation')
LOG.debug('unknown exception occurred during token validation')
raise exception.ZVMUnauthorized()

return function(req, *args, **kwargs)
Expand Down

0 comments on commit b58faea

Please sign in to comment.