Request certificate renewal also master2->master1

not only sat->master to prevent master2's certificate from expiring.
This commit is contained in:
Alexander A. Klimov 2022-03-22 13:59:48 +01:00
parent e06b631f3a
commit 5f2e021390
1 changed files with 2 additions and 1 deletions

View File

@ -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() << "'.";