From 81f304a98ea36cc80db9b52f565eca1b00bca489 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 1 Jul 2021 16:33:40 +0200 Subject: [PATCH] BUG: version: fix api version field name --- CHANGELOG.rst | 2 ++ intelmq_api/runctl.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 254dc6a..bdf1914 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -31,6 +31,8 @@ CHANGELOG content of the files first has to converted to a JSON object. This commit also implements simple error handling in case the files do not exists or can not be created. +- The version API-endpoint now correctly reports the version of IntelMQ API + as ``intelmq-api``, not as ``intelmq-manager`` (by Sebastian Wagner). 2.3.1 (2021-03-25) diff --git a/intelmq_api/runctl.py b/intelmq_api/runctl.py index e0f3b0b..1016bb9 100644 --- a/intelmq_api/runctl.py +++ b/intelmq_api/runctl.py @@ -121,7 +121,7 @@ def list(self, kind: str) -> JSONFile: def version(self) -> Dict[str, str]: intelmq_version = self._run_str(["--version"]).strip() return {"intelmq": intelmq_version, - "intelmq-manager": __version__, + "intelmq-api": __version__, } def check(self) -> JSONFile: