summaryrefslogtreecommitdiff
path: root/kvmd/apps/ipmi/server.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-05-17 15:24:29 +0300
committerDevaev Maxim <[email protected]>2020-05-17 16:09:58 +0300
commit1fd33bc8ed29c3aaeb6c9971e5879c04113246a3 (patch)
treedb022c9c291fdd2495ddd02aa89b532ce4d011cc /kvmd/apps/ipmi/server.py
parent1251b8d705c5a48a78290b2d25cd4de048245035 (diff)
refactoring
Diffstat (limited to 'kvmd/apps/ipmi/server.py')
-rw-r--r--kvmd/apps/ipmi/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/ipmi/server.py b/kvmd/apps/ipmi/server.py
index 0201214f..c53d3ddc 100644
--- a/kvmd/apps/ipmi/server.py
+++ b/kvmd/apps/ipmi/server.py
@@ -36,7 +36,7 @@ from pyghmi.ipmi.private.serversession import ServerSession as IpmiServerSession
from ...logging import get_logger
-from ... import __version__
+from ... import make_user_agent
from .auth import IpmiAuthManager
@@ -169,7 +169,7 @@ class IpmiServer(BaseIpmiServer): # pylint: disable=too-many-instance-attribute
headers={
"X-KVMD-User": credentials.kvmd_user,
"X-KVMD-Passwd": credentials.kvmd_passwd,
- "User-Agent": f"KVMD-IPMI/{__version__}",
+ "User-Agent": make_user_agent("KVMD-IPMI"),
},
timeout=self.__kvmd_timeout,
) as response: