mirror of
https://github.com/Icinga/icinga2.git
synced 2025-05-22 23:40:18 +02:00
Fix: replicated & local endpoints should not have local: prefix.
This commit is contained in:
parent
51bad2d2a6
commit
9074a384fd
@ -84,7 +84,7 @@ Endpoint::Ptr Endpoint::MakeEndpoint(const String& name, bool replicated, bool l
|
|||||||
{
|
{
|
||||||
ConfigItemBuilder::Ptr endpointConfig = boost::make_shared<ConfigItemBuilder>();
|
ConfigItemBuilder::Ptr endpointConfig = boost::make_shared<ConfigItemBuilder>();
|
||||||
endpointConfig->SetType("Endpoint");
|
endpointConfig->SetType("Endpoint");
|
||||||
endpointConfig->SetName(local ? "local:" + name : name);
|
endpointConfig->SetName((!replicated && local) ? "local:" + name : name);
|
||||||
endpointConfig->SetLocal(!replicated);
|
endpointConfig->SetLocal(!replicated);
|
||||||
endpointConfig->AddExpression("local", OperatorSet, local);
|
endpointConfig->AddExpression("local", OperatorSet, local);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user