diff --git a/curvefs_python/curvefs_tool.py b/curvefs_python/curvefs_tool.py index 75c9d8bf93..f2fb582214 100644 --- a/curvefs_python/curvefs_tool.py +++ b/curvefs_python/curvefs_tool.py @@ -84,7 +84,7 @@ def getRetCodeMsg(ret): fileId = kUnitializedFileID if args.optype == "create": - if args.stripeUnit and args.stripeCount: + if args.stripeUnit or args.stripeCount: ret = cbd.Create2(args.filename, user, args.length * kGB, args.stripeUnit, args.stripeCount) else: ret = cbd.Create(args.filename, user, args.length * kGB)