-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

@ -227,12 +227,10 @@ startup_common(clicon_handle h,
xml_print(stderr, xret);
clicon_err(OE_XML, 0, "%s: YANG binding error", __func__);
}
exit(0);
}
/* sort yang */
if (xml_sort_recurse(xt) < 0) {
} /* sort yang */
else if (xml_sort_recurse(xt) < 0) {
clicon_err(OE_XML, EFAULT, "Yang sort error");
exit(0);
}
if (xmldb_dump(h, stdout, xt) < 0)
goto done;