mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
Fix Icinga 2 version detection
With this commit the version prefix character is treated as optional which always used to be 'r' or 'v'. But this is gone since Icinga 2 version 2.11.0 RC1. Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
This commit is contained in:
parent
00e499024f
commit
718ecd05a7
@ -354,7 +354,7 @@ class MonitoringBackend implements Selectable, Queryable, ConnectionInterface
|
|||||||
$programVersion = $this->select()->from('programstatus', array('program_version'))->fetchOne();
|
$programVersion = $this->select()->from('programstatus', array('program_version'))->fetchOne();
|
||||||
}
|
}
|
||||||
return (bool) preg_match(
|
return (bool) preg_match(
|
||||||
'/^[vr]2\.\d+\.\d+.*$/',
|
'/^[vr]?2\.\d+\.\d+.*$/',
|
||||||
$programVersion
|
$programVersion
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user