From a52683ade09d45eaa8ba3c691a2f67c3720bdc4d Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Tue, 11 Dec 2018 13:27:39 -0300 Subject: [PATCH] Fix typo that prevented deleting old resin/ supervisor images Change-type: patch Signed-off-by: Pablo Carranza Velez --- src/compose/images.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compose/images.coffee b/src/compose/images.coffee index ec4ed2ff..7e6c90d1 100644 --- a/src/compose/images.coffee +++ b/src/compose/images.coffee @@ -248,7 +248,7 @@ module.exports = class Images extends EventEmitter isSupervisorRepoTag = ({ imageName, tagName }) -> supervisorRepos = [ supervisorImageInfo.imageName ] if _.startsWith(supervisorImageInfo.imageName, 'balena/') # We're on a new balena/ARCH-supervisor image - supervisorRepos.push(supervisorImageInfo.imageName.replace(/^balena/, 'resin/')) + supervisorRepos.push(supervisorImageInfo.imageName.replace(/^balena/, 'resin')) return _.some(supervisorRepos, (repo) -> imageName == repo) and tagName != supervisorImageInfo.tagName isDangling = (image) -> # Looks like dangling images show up with these weird RepoTags and RepoDigests sometimes