Skip to content

Commit

Permalink
BUG: version: fix api version field name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Wagner committed Jul 1, 2021
1 parent 886b681 commit 81f304a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion intelmq_api/runctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 81f304a

Please sign in to comment.