leaf-list body
This commit is contained in:
parent
32a4b83b28
commit
55201c9b4a
1 changed files with 5 additions and 1 deletions
|
|
@ -134,7 +134,11 @@ expand_dbvar(void *h,
|
||||||
}
|
}
|
||||||
for (i = 0; i < xlen; i++) {
|
for (i = 0; i < xlen; i++) {
|
||||||
x = xvec[i];
|
x = xvec[i];
|
||||||
if ((bodystr = xml_body(x)) == NULL){
|
if (xml_type(x) == CX_BODY)
|
||||||
|
bodystr = xml_value(x);
|
||||||
|
else
|
||||||
|
bodystr = xml_body(x);
|
||||||
|
if (bodystr == NULL){
|
||||||
clicon_err(OE_CFG, 0, "No xml body");
|
clicon_err(OE_CFG, 0, "No xml body");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue