Closed tomwhite closed 6 months ago
It looks like the code assumes the runtime names end with :latest
, which isn't the case here. If I make the following change I can delete images successfully:
iff --git a/lithops/serverless/backends/aws_lambda/aws_lambda.py b/lithops/serverless/backends/aws_lambda/aws_lambda.py
index d44173de..ba95dbba 100644
--- a/lithops/serverless/backends/aws_lambda/aws_lambda.py
+++ b/lithops/serverless/backends/aws_lambda/aws_lambda.py
@@ -610,9 +610,7 @@ class AWSLambdaBackend:
get_runtimes(response)
if runtime_name != 'all':
- if self._is_container_runtime(runtime_name) and ':' not in runtime_name:
- runtime_name = runtime_name + ':latest'
- runtimes = [tup for tup in runtimes if runtime_name in tup[0]]
+ runtimes = [tup for tup in runtimes if runtime_name == tup[0]]
return runtimes
I still can't delete it, anyone found how to fix this?
When I try to delete an image I get runtime not found:
Even though the image is correctly listed: