mirror of https://github.com/Icinga/icinga2.git
parent
2c37a00daf
commit
06e4b4e9da
|
@ -63,7 +63,7 @@ void Checkable::OnAllConfigLoaded(void)
|
|||
|
||||
Zone::Ptr cmdZone = endpoint->GetZone();
|
||||
|
||||
if (cmdZone != checkableZone && cmdZone->GetParent() != checkableZone) {
|
||||
if (checkableZone && cmdZone != checkableZone && cmdZone->GetParent() != checkableZone) {
|
||||
BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("command_endpoint"),
|
||||
"Command endpoint must be in zone '" + checkableZone->GetName() + "' or in a direct child zone thereof."));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue