diff options
author | Maxim Devaev <[email protected]> | 2023-03-07 23:54:05 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-03-07 23:54:05 +0200 |
commit | f652eca9c213dd783cf2ffd02109b2353ccb86c1 (patch) | |
tree | 3c2a5c68e0b03536ec5c482b9b5be708795e8292 /kvmd/apps/ipmi | |
parent | 002031baf15d328dad764a620e1c83c01e7a55a6 (diff) |
refactoring
Diffstat (limited to 'kvmd/apps/ipmi')
-rw-r--r-- | kvmd/apps/ipmi/auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/ipmi/auth.py b/kvmd/apps/ipmi/auth.py index 2e495af8..e5c004eb 100644 --- a/kvmd/apps/ipmi/auth.py +++ b/kvmd/apps/ipmi/auth.py @@ -40,8 +40,8 @@ class IpmiUserCredentials: class IpmiAuthManager: def __init__(self, path: str) -> None: self.__path = path - with open(path) as passwd_file: - self.__credentials = self.__parse_passwd_file(passwd_file.read().split("\n")) + with open(path) as file: + self.__credentials = self.__parse_passwd_file(file.read().split("\n")) def __contains__(self, ipmi_user: str) -> bool: return (ipmi_user in self.__credentials) |