diff options
author | Devaev Maxim <[email protected]> | 2020-05-27 01:51:57 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-05-27 01:51:57 +0300 |
commit | 49aca90c2eaffd2350411be48fae056ba535b427 (patch) | |
tree | 3e57a2b8f439c12b876eafe7e8db24522e29b15a /kvmd | |
parent | 3f6d13af3081b4749ac0f7ff517a0e0b238b98b1 (diff) |
refactoring
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/auth/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/auth/http.py b/kvmd/plugins/auth/http.py index 6cd959ae..c87d624a 100644 --- a/kvmd/plugins/auth/http.py +++ b/kvmd/plugins/auth/http.py @@ -74,7 +74,7 @@ class Plugin(BaseAuthService): async def authorize(self, user: str, passwd: str) -> bool: assert user == user.strip() assert user - session = self.__ensure_session() + session = self.__ensure_http_session() try: async with session.request( method="POST", @@ -101,7 +101,7 @@ class Plugin(BaseAuthService): await self.__http_session.close() self.__http_session = None - def __ensure_session(self) -> aiohttp.ClientSession: + def __ensure_http_session(self) -> aiohttp.ClientSession: if not self.__http_session: kwargs: Dict = {} if self.__user: |