mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-25 10:48:20 +02:00
Request certificate renewal also master2->master1
not only sat->master to prevent master2's certificate from expiring.
This commit is contained in:
parent
19ecb241f5
commit
01422dfdf7
@ -756,8 +756,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…
x
Reference in New Issue
Block a user