diff options
author | Devaev Maxim <[email protected]> | 2020-05-18 13:34:23 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-05-18 13:34:23 +0300 |
commit | 028e0b06ff6730e309e1d3c7fb6abebb81360f5b (patch) | |
tree | 981760a61c3645ad85b6327dadbde3194d31c9e2 /kvmd/apps/ipmi/__init__.py | |
parent | 3947640771a8d212e13196808679ba3caa1c411d (diff) |
refactoring
Diffstat (limited to 'kvmd/apps/ipmi/__init__.py')
-rw-r--r-- | kvmd/apps/ipmi/__init__.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/kvmd/apps/ipmi/__init__.py b/kvmd/apps/ipmi/__init__.py index 03235f10..54e15513 100644 --- a/kvmd/apps/ipmi/__init__.py +++ b/kvmd/apps/ipmi/__init__.py @@ -23,6 +23,10 @@ from typing import List from typing import Optional +from ...clients.kvmd import KvmdClient + +from ... import make_user_agent + from .. import init from .auth import IpmiAuthManager @@ -40,8 +44,9 @@ def main(argv: Optional[List[str]]=None) -> None: # pylint: disable=protected-access IpmiServer( auth_manager=IpmiAuthManager(**config.auth._unpack()), - **{ # Dirty mypy hack - **config.server._unpack(), + kvmd=KvmdClient( + user_agent=make_user_agent("KVMD-IPMI"), **config.kvmd._unpack(), - }, - ).run() # type: ignore + ), + **config.server._unpack(), + ).run() |