-q: print and quit after upgrade: even if sort/bind errors, print the XML

This commit is contained in:
Olof hagsand 2020-08-06 09:02:11 +02:00
parent df095daa50
commit fe8724723d
3 changed files with 7 additions and 6 deletions

View file

@ -1057,6 +1057,9 @@ xmldb_dump(clicon_handle h,
char *format;
int pretty;
/* clear XML tree of defaults */
if (xml_tree_prune_flagged(xt, XML_FLAG_DEFAULT, 1) < 0)
goto done;
/* Add modstate first */
if ((x = clicon_modst_cache_get(h, 1)) != NULL){
if ((xmodst = xml_dup(x)) == NULL)