Fix typo that prevented deleting old resin/ supervisor images

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
This commit is contained in:
Pablo Carranza Velez 2018-12-11 13:27:39 -03:00
parent 8a42d0020f
commit a52683ade0

View File

@ -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