mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-20 03:36:41 +00:00
Don't set empty target state in local mode
Change-type: patch Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
parent
188e85263f
commit
5c0c880a10
@ -822,13 +822,10 @@ module.exports = class ApplicationManager extends EventEmitter
|
||||
return { imagesToSave, imagesToRemove }
|
||||
|
||||
_inferNextSteps: (cleanupNeeded, availableImages, downloading, supervisorNetworkReady, current, target, ignoreImages, { localMode, delta }) =>
|
||||
localMode = checkTruthy(localMode)
|
||||
delta = checkTruthy(delta)
|
||||
Promise.try =>
|
||||
delta = checkTruthy(delta)
|
||||
if checkTruthy(localMode)
|
||||
target = _.cloneDeep(target)
|
||||
target.local.apps = _.mapValues target.local.apps, (app) ->
|
||||
app.services = []
|
||||
return app
|
||||
if localMode
|
||||
ignoreImages = true
|
||||
currentByAppId = current.local.apps ? {}
|
||||
targetByAppId = target.local.apps ? {}
|
||||
|
Loading…
Reference in New Issue
Block a user