mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-19 11:16:34 +00:00
fix: Run checkTruthy on config values before using them
Change-type: patch Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
parent
4b07d539c7
commit
1879c76b00
@ -905,8 +905,8 @@ module.exports = class ApplicationManager extends EventEmitter
|
||||
@networks.supervisorNetworkReady()
|
||||
@config.get('delta')
|
||||
(cleanupNeeded, availableImages, downloading, supervisorNetworkReady, delta) =>
|
||||
conf = { delta, localMode }
|
||||
if localMode
|
||||
conf = _.mapValues({ delta, localMode }, (v) -> checkTruthy(v))
|
||||
if conf.localMode
|
||||
cleanupNeeded = false
|
||||
@_inferNextSteps(cleanupNeeded, availableImages, downloading, supervisorNetworkReady, currentState, targetState, ignoreImages, conf)
|
||||
.then (nextSteps) =>
|
||||
|
Loading…
Reference in New Issue
Block a user