From 6c6771954f21db05bff1c04a8a83b6c0d491e52a Mon Sep 17 00:00:00 2001 From: zhufl Date: Mon, 6 Jan 2020 14:06:46 +0800 Subject: [PATCH] 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 --- mistral/auth/keycloak.py | 2 +- mistral/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mistral/auth/keycloak.py b/mistral/auth/keycloak.py index c6a6977e3..1a87eacff 100644 --- a/mistral/auth/keycloak.py +++ b/mistral/auth/keycloak.py @@ -58,7 +58,7 @@ class KeycloakAuthHandler(auth.AuthHandler): # Format is "iss": "http://:/auth/realms/", __, __, 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 '' diff --git a/mistral/config.py b/mistral/config.py index 2a7208316..1be84f11a 100644 --- a/mistral/config.py +++ b/mistral/config.py @@ -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 '