Skip to content

Commit d2b9090

Browse files
committed
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.
1 parent 25ae36e commit d2b9090

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/cmd-cloud-prune

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,6 @@ def get_supported_images(meta_json):
225225
raise Exception(f"The platform {key} is not supported")
226226
if key in SUPPORTED:
227227
images[key] = meta_json[key]
228-
else:
229-
raise Exception(f"The platform {key} is neither in supported nor unsupported artifacts.")
230228
return images
231229

232230

0 commit comments

Comments
 (0)