mirror of
https://github.com/Icinga/icinga2.git
synced 2026-04-22 22:59:37 -04:00
parent
2c37a00daf
commit
06e4b4e9da
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue