From 0dda9f17fa3f234fed351a6d616ae9987e7bfef5 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 26 Oct 2022 22:30:55 +0300 Subject: [PATCH] [#30] preset: Stop execution if no new containers were created Signed-off-by: Pavel Karpy --- scenarios/preset/preset_grpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scenarios/preset/preset_grpc.py b/scenarios/preset/preset_grpc.py index 09ff41c..acce582 100755 --- a/scenarios/preset/preset_grpc.py +++ b/scenarios/preset/preset_grpc.py @@ -46,6 +46,8 @@ def main(): print("Create containers: Completed") print(f" > Containers: {container_list}") + if not container_list: + return print(f"Upload objects to each container: {args.preload_obj} ") random_payload(payload_filepath)