diff options
| author | Christian Hopps <chopps@labn.net> | 2024-01-18 04:17:35 +0000 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2024-01-19 15:27:24 +0000 |
| commit | 9e34d817fcccd29115c2fef0c9199cca24b631fd (patch) | |
| tree | 94858491e75cc5019fa149eca76cbf51e65a8c99 /lib/mgmt_be_client.c | |
| parent | f05a4e3b577b50f20b85ae95e53222c133bc7b1f (diff) | |
lib: better conditionalize leaf-list predicate xpath addition
If we're in the backend we already have the predicate added by mgmtd -- don't
add it again.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_be_client.c')
| -rw-r--r-- | lib/mgmt_be_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mgmt_be_client.c b/lib/mgmt_be_client.c index 16aea249a4..d50dd03fdc 100644 --- a/lib/mgmt_be_client.c +++ b/lib/mgmt_be_client.c @@ -449,7 +449,7 @@ static int mgmt_be_txn_cfg_prepare(struct mgmt_be_txn_ctx *txn) client_ctx->candidate_config, txn_req->req.set_cfg.cfg_changes, (size_t)txn_req->req.set_cfg.num_cfg_changes, - NULL, err_buf, sizeof(err_buf), &error); + NULL, true, err_buf, sizeof(err_buf), &error); if (error) { err_buf[sizeof(err_buf) - 1] = 0; MGMTD_BE_CLIENT_ERR( |
