summaryrefslogtreecommitdiff
path: root/kvmd/apps/ipmi/auth.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-06-01 03:54:40 +0300
committerDevaev Maxim <[email protected]>2019-06-01 03:54:40 +0300
commit7037bb0cfafbceb98da478a9d182aa0c43162eb2 (patch)
treebd25590203b44d0a3688fe74955ae3116790a9b3 /kvmd/apps/ipmi/auth.py
parent187a195011aacc66cd8652f0af81ee0300bb7381 (diff)
using dataclasses instead of typed namedtuple
Diffstat (limited to 'kvmd/apps/ipmi/auth.py')
-rw-r--r--kvmd/apps/ipmi/auth.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmd/apps/ipmi/auth.py b/kvmd/apps/ipmi/auth.py
index 4b95abf5..d4c922d7 100644
--- a/kvmd/apps/ipmi/auth.py
+++ b/kvmd/apps/ipmi/auth.py
@@ -20,9 +20,10 @@
# ========================================================================== #
+import dataclasses
+
from typing import List
from typing import Dict
-from typing import NamedTuple
# =====
@@ -31,7 +32,8 @@ class IpmiPasswdError(Exception):
super().__init__("Incorrect IPMI passwd file: " + msg)
-class IpmiUserCredentials(NamedTuple):
[email protected](frozen=True)
+class IpmiUserCredentials:
ipmi_user: str
ipmi_passwd: str
kvmd_user: str