We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57e8a9c commit 6189702Copy full SHA for 6189702
functions/clean_ecr_images/index.js
@@ -25,6 +25,8 @@ function findImagesToClear(images, age) {
25
function deleteImages(images, repositoryName) {
26
const imageIds = images.map(i => _.pick(i, 'imageDigest'));
27
28
+ if (imageIds.length == 0) return;
29
+
30
return ecr.batchDeleteImage({
31
imageIds: imageIds,
32
repositoryName: repositoryName,
0 commit comments