From 37a1e9abd216f332b871ede8378e0f410d7c601b Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Fri, 6 Sep 2024 08:53:53 -0600 Subject: [PATCH] Fix --- src/middlewared/middlewared/utils/user_api_key.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/middlewared/middlewared/utils/user_api_key.py b/src/middlewared/middlewared/utils/user_api_key.py index 02d4af09308d6..21ef30e4f0dfb 100644 --- a/src/middlewared/middlewared/utils/user_api_key.py +++ b/src/middlewared/middlewared/utils/user_api_key.py @@ -22,14 +22,14 @@ @dataclass(frozen=True) -class UserAPIKey: +class UserApiKey: expiry: int userhash: str @dataclass(frozen=True) class PamTdbEntry: - keys: list[UserAPIKey] + keys: list[UserApiKey] username: str @@ -38,7 +38,7 @@ def _setup_pam_tdb_dir() -> None: os.chmod(PAM_TDB_DIR, PAM_TDB_DIR_MODE) -def _pack_user_auth_key(api_key: UserAPIKey) -> bytes: +def _pack_user_auth_key(api_key: UserApiKey) -> bytes: """ Convert UserAuthToken to bytes for TDB insertion. This is packed struct with expiry converted into signed 64 bit