mirror of https://github.com/Icinga/icinga2.git
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>();
|
||||
endpointConfig->SetType("Endpoint");
|
||||
endpointConfig->SetName(local ? "local:" + name : name);
|
||||
endpointConfig->SetName((!replicated && local) ? "local:" + name : name);
|
||||
endpointConfig->SetLocal(!replicated);
|
||||
endpointConfig->AddExpression("local", OperatorSet, local);
|
||||
|
||||
|
|
Loading…
Reference in New Issue