mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-02 07:40:48 +00:00
Merge pull request #842 from balena-io/fix-resin-cleanup
Fix typo that prevented deleting old resin/ supervisor images
This commit is contained in:
commit
f7fd34d96f
@ -248,7 +248,7 @@ module.exports = class Images extends EventEmitter
|
|||||||
isSupervisorRepoTag = ({ imageName, tagName }) ->
|
isSupervisorRepoTag = ({ imageName, tagName }) ->
|
||||||
supervisorRepos = [ supervisorImageInfo.imageName ]
|
supervisorRepos = [ supervisorImageInfo.imageName ]
|
||||||
if _.startsWith(supervisorImageInfo.imageName, 'balena/') # We're on a new balena/ARCH-supervisor image
|
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
|
return _.some(supervisorRepos, (repo) -> imageName == repo) and tagName != supervisorImageInfo.tagName
|
||||||
isDangling = (image) ->
|
isDangling = (image) ->
|
||||||
# Looks like dangling images show up with these weird RepoTags and RepoDigests sometimes
|
# Looks like dangling images show up with these weird RepoTags and RepoDigests sometimes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user