mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
parent
2c37a00daf
commit
06e4b4e9da
@ -63,7 +63,7 @@ void Checkable::OnAllConfigLoaded(void)
|
|||||||
|
|
||||||
Zone::Ptr cmdZone = endpoint->GetZone();
|
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"),
|
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."));
|
"Command endpoint must be in zone '" + checkableZone->GetName() + "' or in a direct child zone thereof."));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user