From 7c07cd96e6145f243be27af4d02ac0e88f7870b8 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Tue, 28 Nov 2023 21:49:02 +0100 Subject: [PATCH] [#3106] Use getThisServerName() in a few places --- src/hooks/dhcp/high_availability/ha_service.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hooks/dhcp/high_availability/ha_service.cc b/src/hooks/dhcp/high_availability/ha_service.cc index 25b23dbf7e..4c570931d5 100644 --- a/src/hooks/dhcp/high_availability/ha_service.cc +++ b/src/hooks/dhcp/high_availability/ha_service.cc @@ -1712,7 +1712,7 @@ HAService::asyncSendHeartbeat() { (HttpRequest::Method::HTTP_POST, "/", HttpVersion::HTTP_11(), HostHttpHeader(partner_config->getUrl().getStrippedHostname())); partner_config->addBasicAuthHttpHeader(request); - request->setBodyAsJson(CommandCreator::createHeartbeat(config_->getThisServerConfig()->getName(), + request->setBodyAsJson(CommandCreator::createHeartbeat(config_->getThisServerName(), server_type_)); request->finalize(); @@ -2550,7 +2550,7 @@ void HAService::asyncSendHAReset(HttpClient& http_client, const HAConfig::PeerConfigPtr& config, PostRequestCallback post_request_action) { - ConstElementPtr command = CommandCreator::createHAReset(config_->getThisServerConfig()->getName(), + ConstElementPtr command = CommandCreator::createHAReset(config_->getThisServerName(), server_type_); // Create HTTP/1.1 request including our command. @@ -2920,7 +2920,7 @@ HAService::asyncSyncCompleteNotify(HttpClient& http_client, remote_config->addBasicAuthHttpHeader(request); request->setBodyAsJson(CommandCreator::createSyncCompleteNotify(NetworkState::HA_REMOTE_COMMAND+id_, - config_->getThisServerConfig()->getName(), + config_->getThisServerName(), server_type_)); request->finalize();