Merge pull request #15503 from FRRouting/mergify/bp/dev/10.0/pr-15498

mgmtd: change error message (backport #15498)
This commit is contained in:
Igor Ryzhov 2024-03-07 18:08:01 +02:00 committed by GitHub
commit 68eb06de45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -824,7 +824,6 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req,
struct nb_config_change *chg;
struct mgmt_txn_be_cfg_batch *batch;
char *xpath = NULL, *value = NULL;
char err_buf[1024];
enum mgmt_be_client_id id;
struct mgmt_be_client_adapter *adapter;
struct mgmt_commit_cfg_req *cmtcfg_req;
@ -919,12 +918,9 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req,
num_chgs++;
}
if (!chg_clients) {
snprintf(err_buf, sizeof(err_buf),
"No validator module found for XPATH: '%s",
xpath);
__log_err("***** %s", err_buf);
}
if (!chg_clients)
__log_err("No connected daemon is interested in XPATH %s",
xpath);
cmtcfg_req->clients |= chg_clients;