three-valued return values for datastore text_modify

This commit is contained in:
Olof hagsand 2019-01-02 18:20:50 +01:00
parent 32ea957a52
commit 6c48165340
4 changed files with 63 additions and 37 deletions

View file

@ -285,7 +285,7 @@ candidate_commit(clicon_handle h,
/* Optionally write (potentially modified) tree back to candidate */
if (clicon_option_bool(h, "CLICON_TRANSACTION_MOD")){
if ((ret = xmldb_put(h, candidate, OP_REPLACE, td->td_target, NULL)) < 0)
if ((ret = xmldb_put(h, candidate, OP_REPLACE, td->td_target, cbret)) < 0)
goto done;
if (ret == 0)
goto fail;