MCPcopy Create free account
hub / github.com/Icinga/icinga2 / SetCachedZone

Method SetCachedZone

lib/remote/endpoint.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void Endpoint::SetCachedZone(const Zone::Ptr& zone)
41{
42 if (m_Zone)
43 BOOST_THROW_EXCEPTION(ScriptError("Endpoint '" + GetName()
44 + "' is in more than one zone.", GetDebugInfo()));
45
46 m_Zone = zone;
47}
48
49Endpoint::Endpoint()
50{

Callers 1

OnAllConfigLoadedMethod · 0.80

Calls 1

ScriptErrorClass · 0.85

Tested by

no test coverage detected