Monitoring: permit disabling IDO backends no Icinga writes to

This commit is contained in:
Alexander A. Klimov 2018-01-25 17:27:29 +01:00 committed by Johannes Meyer
parent f9ec105537
commit e6eb1540c0
1 changed files with 4 additions and 1 deletions

View File

@ -275,7 +275,10 @@ class BackendConfigForm extends ConfigForm
if (($el = $this->getElement('skip_validation')) === null || false === $el->isChecked()) { if (($el = $this->getElement('skip_validation')) === null || false === $el->isChecked()) {
$resourceConfig = ResourceFactory::getResourceConfig($this->getValue('resource')); $resourceConfig = ResourceFactory::getResourceConfig($this->getValue('resource'));
if (! self::isValidIdoSchema($this, $resourceConfig) || !self::isValidIdoInstance($this, $resourceConfig)) { if (! self::isValidIdoSchema($this, $resourceConfig)
|| (! $this->getElement('disabled')->isChecked()
&& ! self::isValidIdoInstance($this, $resourceConfig))
) {
if ($el === null) { if ($el === null) {
$this->addSkipValidationCheckbox(); $this->addSkipValidationCheckbox();
} }