]> granicus.if.org Git - icinga2/commit
Fix the Icinga2 version check for versions with more than 5 characters
authorMax Rosin <git@hackrid.de>
Fri, 19 Oct 2018 13:37:32 +0000 (15:37 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 29 Oct 2018 12:51:09 +0000 (13:51 +0100)
commitd8462cf6cd1760b3cf30825d5aec7687559b2bc8
tree41d698b494f984a3e1ec200b1ea5992bb876e10d
parent30853e6041aee1c327248267303185a91fb145f1
 Fix the Icinga2 version check for versions with more than 5 characters

The previous implementation assumed that every version number will have
5 characters. With the release of 2.10.0 this does not work anymore.
The new implementation extracts everything from the second character to
the first dash. This should work as long as the version string is in a
format like 'v2.10.1-8-gaebe6da'.

fixes Icinga#6703
lib/methods/icingachecktask.cpp