mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
lib: look at the correct token for json
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
8ea37652c7
commit
5046f07672
@ -34,7 +34,7 @@ use_json (const int argc, struct cmd_token *argv[])
|
||||
if (argc == 0)
|
||||
return 0;
|
||||
|
||||
if (argv[argc-1]->arg && strcmp(argv[argc-1]->arg, "json") == 0)
|
||||
if (argv[argc-1]->arg && strmatch (argv[argc-1]->text, "json"))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user