mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +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
85f8496017
commit
1ffc9f8120
@ -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…
x
Reference in New Issue
Block a user