Skip to content

Commit 81f304a

Browse files
author
Sebastian Wagner
committed
BUG: version: fix api version field name
1 parent 886b681 commit 81f304a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ CHANGELOG
3131
content of the files first has to converted to a JSON object.
3232
This commit also implements simple error handling in case the files do
3333
not exists or can not be created.
34+
- The version API-endpoint now correctly reports the version of IntelMQ API
35+
as ``intelmq-api``, not as ``intelmq-manager`` (by Sebastian Wagner).
3436

3537

3638
2.3.1 (2021-03-25)

intelmq_api/runctl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def list(self, kind: str) -> JSONFile:
121121
def version(self) -> Dict[str, str]:
122122
intelmq_version = self._run_str(["--version"]).strip()
123123
return {"intelmq": intelmq_version,
124-
"intelmq-manager": __version__,
124+
"intelmq-api": __version__,
125125
}
126126

127127
def check(self) -> JSONFile:

0 commit comments

Comments
 (0)