With-defaults tagged: move wd attribute from <data> to level under

show cli: remove empty container
This commit is contained in:
Olof hagsand 2022-09-09 13:00:01 +02:00
parent 743076b171
commit 51fca05642
2 changed files with 8 additions and 2 deletions

View file

@ -477,6 +477,9 @@ cli_auto_show(clicon_handle h,
strcmp(defaultstr, "report-all-tagged-strip")
) < 0)
goto done;
/* Remove empty containers */
if (xml_defaults_nopresence(xt, 2) < 0)
goto done;
}
if (xpath_vec(xt, nsc, "%s", &vec, &veclen, xpath) < 0)
goto done;