Return unprefixed Icinga version in MonitoringBackend::getProgramVersion()

This commit is contained in:
Eric Lippmann 2016-12-12 12:40:54 +01:00
parent 293dd2b576
commit 8f9920f1fc
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ class MonitoringBackend implements Selectable, Queryable, ConnectionInterface
*/
public function getProgramVersion()
{
return $this->select()->from('programstatus', array('program_version'))->fetchOne();
return preg_replace('/^[vr]/', '', $this->select()->from('programstatus', array('program_version'))->fetchOne());
}
/**