From 59122ff270cac9248dcaad917658a86588f72113 Mon Sep 17 00:00:00 2001 From: gursewak1997 Date: Tue, 24 Sep 2024 18:07:29 -0700 Subject: [PATCH] cmd-cloud-prune: remove the unneeded exception This exception was not supposed to be added there since that check was just added to make sure there isn't any build artifacts in meta.json top-level keys that is in unsupported list. So far, we only prune aws and gcp. There are many top-level keys that are not artifacts-related so this check would throw the exception when not needed. --- src/cmd-cloud-prune | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cmd-cloud-prune b/src/cmd-cloud-prune index 7ec28a2a41..9703443572 100755 --- a/src/cmd-cloud-prune +++ b/src/cmd-cloud-prune @@ -225,8 +225,6 @@ def get_supported_images(meta_json): raise Exception(f"The platform {key} is not supported") if key in SUPPORTED: images[key] = meta_json[key] - else: - raise Exception(f"The platform {key} is neither in supported nor unsupported artifacts.") return images