mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-25 00:11:06 +00:00
fix: Fix typo in image cleanup code
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
2bdb34d78d
commit
9963d24675
@ -249,7 +249,7 @@ module.exports = class Images extends EventEmitter
|
|||||||
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 == img) 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
|
||||||
(_.isEmpty(image.RepoTags) or _.isEqual(image.RepoTags, [ '<none>:<none>' ])) and
|
(_.isEmpty(image.RepoTags) or _.isEqual(image.RepoTags, [ '<none>:<none>' ])) and
|
||||||
|
Loading…
Reference in New Issue
Block a user