mirror of https://github.com/Icinga/icinga2.git
Request certificate renewal also master2->master1
not only sat->master to prevent master2's certificate from expiring.
This commit is contained in:
parent
e06b631f3a
commit
5f2e021390
|
@ -771,8 +771,9 @@ void ApiListener::SyncClient(const JsonRpcConnection::Ptr& aclient, const Endpoi
|
||||||
}
|
}
|
||||||
|
|
||||||
Zone::Ptr myZone = Zone::GetLocalZone();
|
Zone::Ptr myZone = Zone::GetLocalZone();
|
||||||
|
auto parent (myZone->GetParent());
|
||||||
|
|
||||||
if (myZone->GetParent() == eZone) {
|
if (parent == eZone || !parent && eZone == myZone) {
|
||||||
Log(LogInformation, "ApiListener")
|
Log(LogInformation, "ApiListener")
|
||||||
<< "Requesting new certificate for this Icinga instance from endpoint '" << endpoint->GetName() << "'.";
|
<< "Requesting new certificate for this Icinga instance from endpoint '" << endpoint->GetName() << "'.";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue