Skip to content

Commit

Permalink
Merge pull request #912 from untergeek/fix/874
Browse files Browse the repository at this point in the history
Log version incompatibilities
  • Loading branch information
untergeek committed Mar 27, 2017
2 parents 91cf324 + 4932946 commit 323970c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions curator/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,11 @@ def check_version(client):
)
if version_number >= settings.version_max() \
or version_number < settings.version_min():
logger.error(
'Elasticsearch version {0} incompatible '
'with this version of Curator '
'({0})'.format(".".join(map(str,version_number)), __version__)
)
raise CuratorException(
'Elasticsearch version {0} incompatible '
'with this version of Curator '
Expand Down
5 changes: 5 additions & 0 deletions docs/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ production! There `will` be many more changes before 5.0.0 is released.
* Bumped ``urllib3`` (python module) version dependency to 1.20
* Bumped ``elasticsearch`` (python module) version dependency to 5.2

**Bug Fixes**

* Curator now logs version incompatibilities as an error, rather than just
raising an Exception. #874 (untergeek)


5.0.0a1 (23 March 2017)
-------------
Expand Down

0 comments on commit 323970c

Please sign in to comment.