Return unprefixed Icinga version in MonitoringBackend::getProgramVersion()
This commit is contained in:
parent
293dd2b576
commit
8f9920f1fc
|
@ -339,7 +339,7 @@ class MonitoringBackend implements Selectable, Queryable, ConnectionInterface
|
||||||
*/
|
*/
|
||||||
public function getProgramVersion()
|
public function getProgramVersion()
|
||||||
{
|
{
|
||||||
return $this->select()->from('programstatus', array('program_version'))->fetchOne();
|
return preg_replace('/^[vr]/', '', $this->select()->from('programstatus', array('program_version'))->fetchOne());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue