cli show for mtpoint: increased range for arg check
This commit is contained in:
parent
b6116261a3
commit
9550ba808b
1 changed files with 2 additions and 1 deletions
|
|
@ -529,6 +529,7 @@ cli_show_common(clicon_handle h,
|
|||
goto done;
|
||||
break;
|
||||
case FORMAT_CLI:
|
||||
/* If xp is not bound, cli prints are skipped */
|
||||
if (clixon_cli2file(h, stdout, xp, prepend, cligen_output, skiptop) < 0) /* cli syntax */
|
||||
goto done;
|
||||
break;
|
||||
|
|
@ -896,7 +897,7 @@ cli_show_auto(clicon_handle h,
|
|||
char *str;
|
||||
char *mtpoint = NULL;
|
||||
|
||||
if (cvec_len(argv) < 2 || cvec_len(argv) > 7){
|
||||
if (cvec_len(argv) < 2 || cvec_len(argv) > 8){
|
||||
clicon_err(OE_PLUGIN, EINVAL, "Received %d arguments. Expected:: <api-path-fmt>* <database> [<format> <pretty> <state> <default> <prepend>]", cvec_len(argv));
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue