mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-19 03:06:27 +00:00
There is no need to resolve currentSupervisor again as we have already resolved it.
This commit is contained in:
parent
7e3c9707cb
commit
cd7ee9b82f
@ -113,11 +113,8 @@ exports.initialised = currentSupervisor.then (currentSupervisor) ->
|
||||
stream.on('end', resolve)
|
||||
.then ->
|
||||
console.log('Inspecting new supervisor:', remoteImage)
|
||||
Promise.all([
|
||||
docker.getImage(remoteImage).inspectAsync()
|
||||
currentSupervisor
|
||||
])
|
||||
.spread (localImageInfo, currentSupervisor) ->
|
||||
docker.getImage(remoteImage).inspectAsync()
|
||||
.then (localImageInfo) ->
|
||||
localImageId = localImageInfo.Id or localImageInfo.id
|
||||
if localImageId is currentSupervisor.Image
|
||||
utils.mixpanelTrack('Supervisor up to date')
|
||||
|
Loading…
Reference in New Issue
Block a user