mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 14:13:08 +00:00
Test for both 'id' and 'Id' when docker responds with image info
This commit is contained in:
parent
58035f8b24
commit
3ae3668221
@ -47,10 +47,11 @@ exports.update = ->
|
||||
currentSupervisorImage
|
||||
])
|
||||
.spread (localImageInfo, currentSupervisorImage) ->
|
||||
if localImageInfo.Id == currentSupervisorImage
|
||||
localImageId = localImageInfo.Id or localImageInfo.id
|
||||
if localImageId is currentSupervisorImage
|
||||
utils.mixpanelTrack('Supervisor up to date')
|
||||
return
|
||||
utils.mixpanelTrack('Supervisor update start', image: localImageInfo.Id)
|
||||
utils.mixpanelTrack('Supervisor update start', image: localImageId)
|
||||
docker.createContainerAsync(
|
||||
Image: localImage
|
||||
Cmd: ['/start']
|
||||
|
Loading…
Reference in New Issue
Block a user