commit | bf42e83f084d031a2085ba74b17d88c7c40d1138 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Nov 23 16:59:42 2020 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Nov 26 07:16:03 2020 +0100 |
tree | 772bd4e513d4189fd7a8fb057a8043f834ff7fd0 | |
parent | 6a66ffbbc4884772d5cf2fbd1a31c481c1e9d95d [diff] [blame] |
xpath BUGFIX unresolved value is valid
diff --git a/src/xpath.c b/src/xpath.c index aa060fc..7b91191 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -3333,6 +3333,9 @@ if (type->basetype != LY_TYPE_IDENT) { rc = type->plugin->store(set->ctx, type, value, strlen(value), 0, set->format, set->prefix_data, LYD_HINT_DATA, scnode, &storage, &err); + if (rc == LY_EINCOMPLETE) { + rc = LY_SUCCESS; + } if (err) { LOGWRN(set->ctx, "Invalid value \"%s\" which does not fit the type (%s).", value, err->msg);