mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 22:23:13 +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
|
currentSupervisorImage
|
||||||
])
|
])
|
||||||
.spread (localImageInfo, currentSupervisorImage) ->
|
.spread (localImageInfo, currentSupervisorImage) ->
|
||||||
if localImageInfo.Id == currentSupervisorImage
|
localImageId = localImageInfo.Id or localImageInfo.id
|
||||||
|
if localImageId is currentSupervisorImage
|
||||||
utils.mixpanelTrack('Supervisor up to date')
|
utils.mixpanelTrack('Supervisor up to date')
|
||||||
return
|
return
|
||||||
utils.mixpanelTrack('Supervisor update start', image: localImageInfo.Id)
|
utils.mixpanelTrack('Supervisor update start', image: localImageId)
|
||||||
docker.createContainerAsync(
|
docker.createContainerAsync(
|
||||||
Image: localImage
|
Image: localImage
|
||||||
Cmd: ['/start']
|
Cmd: ['/start']
|
||||||
|
Loading…
Reference in New Issue
Block a user