From 6d9614a83c4d1318b7874b07d6046f858446cbbb Mon Sep 17 00:00:00 2001 From: kungurtsev Date: Tue, 15 Oct 2024 13:47:23 +0200 Subject: [PATCH] Throw error if manifests don't exist (#10396) --- ydb/tools/ydbd_slice/kube/handlers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ydb/tools/ydbd_slice/kube/handlers.py b/ydb/tools/ydbd_slice/kube/handlers.py index 5c1cd0bb58ff..597afdaa3832 100644 --- a/ydb/tools/ydbd_slice/kube/handlers.py +++ b/ydb/tools/ydbd_slice/kube/handlers.py @@ -80,6 +80,9 @@ def get_all_manifests(directory): 'Please create NodeClaim mainfest') sys.exit(2) + if not result: + raise RuntimeError(f'failed to find any manifests in {os.path.abspath(directory)}') + return result