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

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-10-26 22:30:55 +03:00 committed by fyrchik
parent 0088fbd7d6
commit 0dda9f17fa

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)