Correctly generate network or volume creation steps

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-08-21 10:48:38 +01:00
parent 9a823475b5
commit ded828da9a

View File

@ -422,7 +422,8 @@ module.exports = class ApplicationManager extends EventEmitter
steps.push(serviceAction('kill', dependency.serviceId, dependency))
return steps
else if target?
return [{ action: 'createNetworkOrVolume', model, target }]
action = if model is 'network' then 'createNetwork' else 'createVolume'
return [{ action, target }]
_nextStepsForNetwork: ({ current, target }, currentApp, changingPairs) =>
dependencyComparisonFn = (service, current) ->