From cf8fb03b2c2577b0618301f8845fe938dac24cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=92=B8=E5=B0=8F=E9=B1=BC?= Date: Thu, 11 Mar 2021 01:06:10 +0800 Subject: [PATCH] fix "datafaker file /home out.txt 10 --meta meta.txt --format json" raise ParamError('rdb not support for json format') --- datafaker/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafaker/cli.py b/datafaker/cli.py index 7847a79..2dfdd93 100644 --- a/datafaker/cli.py +++ b/datafaker/cli.py @@ -61,7 +61,7 @@ def parse_args(): parser.print_help() exit(0) - if args.format == JSON_FORMAT and any([args.outprint, args.dbtype in ['file', 'kafka']]): + if args.format == JSON_FORMAT and any([args.outprint, args.dbtype not in ['file', 'kafka']]): raise ParamError('rdb not support for json format') if args.metaj and args.dbtype not in ['file', 'kafka']: raise ParamError('rdb not support for metaj')