From 4ff87f9bf64dec5bf007a67180e9afb8a8a9840a Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Wed, 24 Jan 2024 16:25:39 +0300 Subject: [PATCH] [#122] preset_grpc: Allow specify `--local` without value Now `--local` is flag, so it is possible to specify `--local` instead of `--local True` or '--local False'. Signed-off-by: Dmitrii Stepanov --- scenarios/preset/preset_grpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenarios/preset/preset_grpc.py b/scenarios/preset/preset_grpc.py index b636104..0c170ea 100755 --- a/scenarios/preset/preset_grpc.py +++ b/scenarios/preset/preset_grpc.py @@ -34,7 +34,7 @@ parser.add_argument('--ignore-errors', help='Ignore preset errors', action='stor parser.add_argument('--workers', help='Count of workers in preset. Max = 50, Default = 50', default=50) parser.add_argument('--sleep', help='Time to sleep between containers creation and objects upload (in seconds), ' 'Default = 8', default=8) -parser.add_argument('--local', help='Create containers that store data on provided endpoints. Warning: additional empty containers may be created.', default=False) +parser.add_argument('--local', help='Create containers that store data on provided endpoints. Warning: additional empty containers may be created.', action='store_true') args: Namespace = parser.parse_args() print(args)