Fixed: [Clixon CLI issue: when I try to print the value of the leaf node nothing appeared](https://github.com/clicon/clixon/issues/345)

This commit is contained in:
Olof hagsand 2022-07-26 13:32:57 +02:00
parent d7ed503bad
commit 57bc36d5ed
3 changed files with 4 additions and 3 deletions

View file

@ -770,11 +770,11 @@ cli_show_auto1(clicon_handle h,
fprintf(stdout, "</config></edit-config></rpc>]]>]]>\n");
break;
case FORMAT_JSON:
if (clixon_json2file(stdout, xp, 1, cligen_output, 1, 1) < 0)
if (clixon_json2file(stdout, xp, 1, cligen_output, 0, 1) < 0)
goto done;
break;
case FORMAT_TEXT:
if (clixon_txt2file(stdout, xp, 0, cligen_output, 1, 1) < 0)
if (clixon_txt2file(stdout, xp, 0, cligen_output, 0, 1) < 0)
goto done;
break;
case FORMAT_XML: