Fixed: [default state data returned with get-config](https://github.com/clicon/clixon/issues/140)
* Generalized default code for both config and state
This commit is contained in:
parent
da54dae396
commit
9984cfa1c8
15 changed files with 344 additions and 39 deletions
|
|
@ -323,7 +323,7 @@ main(int argc,
|
|||
goto done;
|
||||
|
||||
/* Add default values */
|
||||
if (xml_default_recurse(x0) < 0)
|
||||
if (xml_default_recurse(x0, 0) < 0)
|
||||
goto done;
|
||||
if (xml_apply0(x0, -1, xml_sort_verify, h) < 0)
|
||||
clicon_log(LOG_NOTICE, "%s: sort verify failed", __FUNCTION__);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue