Merge pull request #1069 from balena-io/fix-step-name

Correctly generate network or volume creation steps
This commit is contained in:
CameronDiver 2019-08-21 14:29:33 +01:00 committed by GitHub
commit aea9362abd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) ->