mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 14:13:08 +00:00
Wrap services.getAll in a bluebird promise
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
e2c159f009
commit
ef7d993db6
@ -882,7 +882,7 @@ module.exports = class ApplicationManager extends EventEmitter
|
||||
return _.uniqWith(nextSteps, _.isEqual)
|
||||
|
||||
stopAll: ({ force = false, skipLock = false } = {}) =>
|
||||
@services.getAll()
|
||||
Promise.resolve(@services.getAll())
|
||||
.map (service) =>
|
||||
@_lockingIfNecessary service.appId, { force, skipLock }, =>
|
||||
@services.kill(service, { removeContainer: false, wait: true })
|
||||
|
Loading…
Reference in New Issue
Block a user