diff --git a/src/application-manager.coffee b/src/application-manager.coffee index 1f5c822d..3f87e65f 100644 --- a/src/application-manager.coffee +++ b/src/application-manager.coffee @@ -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) ->