Fixed: [Restconf PATCH method request failed on item defined by submodule #306](https://github.com/clicon/clixon/issues/306)

This commit is contained in:
Olof hagsand 2022-02-23 11:20:52 +01:00
parent 97316e0bfa
commit 2291275fae
5 changed files with 14 additions and 9 deletions

View file

@ -267,8 +267,10 @@ api_data_write(clicon_handle h,
goto done;
goto ok;
}
if (ybot)
ymodapi = ys_module(ybot);
if (ybot){
if (ys_real_module(ybot, &ymodapi) < 0)
goto done;
}
}
/* 4.4.1: The message-body MUST contain exactly one instance of the
* expected data resource. (tested again below)