Fix duplicated words issue like "from from parsed token"

This is to fix the duplicated words issue like
"Get roles from from parsed token".

Change-Id: I55c96c1eea495d8dfb7e87d8f8498fce5dbbd068
This commit is contained in:
zhufl 2020-01-06 14:06:46 +08:00
parent 6e9a70db25
commit 6c6771954f
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class KeycloakAuthHandler(auth.AuthHandler):
# Format is "iss": "http://<host>:<port>/auth/realms/<realm_name>",
__, __, realm_name = decoded['iss'].strip().rpartition('/realms/')
# Get roles from from parsed token
# Get roles from parsed token
roles = ','.join(decoded['realm_access']['roles']) \
if 'realm_access' in decoded else ''

View File

@ -319,7 +319,7 @@ scheduler_opts = [
'locally before it becomes eligible for processing by other '
'scheduler instances.'
'For example, a job needs to run at 12:00:00. When a scheduler '
'starts processing it it has 60 seconds (or other configured '
'starts processing it has 60 seconds (or other configured '
'value) to complete the job. If the scheduler did not complete '
'the job within this period it most likely means that the '
'scheduler process crashed. In this case another scheduler '