From 949f14b11922924c9622a3a2c703f4165d33a05a Mon Sep 17 00:00:00 2001 From: Thomas Krzero Date: Thu, 25 May 2017 11:13:29 +0200 Subject: [PATCH] fix(service-creation) - issue with bind mount (#882) --- app/components/createService/createServiceController.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/components/createService/createServiceController.js b/app/components/createService/createServiceController.js index 02924bf44..5ba874fb7 100644 --- a/app/components/createService/createServiceController.js +++ b/app/components/createService/createServiceController.js @@ -176,12 +176,7 @@ function ($scope, $state, Service, ServiceHelper, Volume, Network, ImageHelper, function prepareVolumes(config, input) { input.Volumes.forEach(function (volume) { if (volume.Source && volume.Target) { - var mount = {}; - mount.Type = volume.Bind ? 'bind' : 'volume'; - mount.ReadOnly = volume.ReadOnly ? true : false; - mount.Source = volume.Source; - mount.Target = volume.Target; - config.TaskTemplate.ContainerSpec.Mounts.push(mount); + config.TaskTemplate.ContainerSpec.Mounts.push(volume); } }); }