[#30] preset: Stop execution if no new containers were created

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
remotes/fyrchik/master
Pavel Karpy 2022-10-26 22:30:55 +03:00 committed by fyrchik
parent 0088fbd7d6
commit 0dda9f17fa
1 changed files with 2 additions and 0 deletions

View File

@ -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)