Spelling fixes
This commit is contained in:
parent
7e86106562
commit
decd9a49f1
@ -38,7 +38,7 @@ class AuthApi:
|
|||||||
self._refresh_token = data_json.get('refresh_token')
|
self._refresh_token = data_json.get('refresh_token')
|
||||||
self._expiry = int(data_json.get('expiry', 0))
|
self._expiry = int(data_json.get('expiry', 0))
|
||||||
except (IOError, TypeError, ValueError):
|
except (IOError, TypeError, ValueError):
|
||||||
_LOGGER.info('We could not use the cache since it is invalid or non-existant.')
|
_LOGGER.info('We could not use the cache since it is invalid or non-existent.')
|
||||||
|
|
||||||
def get_token(self):
|
def get_token(self):
|
||||||
""" Get a valid token """
|
""" Get a valid token """
|
||||||
|
@ -40,7 +40,7 @@ class AwsIdp:
|
|||||||
|
|
||||||
self.pool_id = pool_id
|
self.pool_id = pool_id
|
||||||
if "_" not in self.pool_id:
|
if "_" not in self.pool_id:
|
||||||
raise ValueError("Invalid pool_id format. Shoud be <region>_<poolid>.")
|
raise ValueError("Invalid pool_id format. Should be <region>_<poolid>.")
|
||||||
|
|
||||||
self.client_id = client_id
|
self.client_id = client_id
|
||||||
self.region = self.pool_id.split("_")[0]
|
self.region = self.pool_id.split("_")[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user