From 96dc07a8cf845c56d2756dabfded2637e1c6e70d Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 8 Jun 2017 10:44:05 +0200 Subject: [PATCH] =?UTF-8?q?Update=20ConvertService=20for=20external=20usag?= =?UTF-8?q?e=20=F0=9F=91=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vincent Demeester --- cli/compose/convert/service.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/compose/convert/service.go b/cli/compose/convert/service.go index 0fef936a22..8f03a372ca 100644 --- a/cli/compose/convert/service.go +++ b/cli/compose/convert/service.go @@ -41,7 +41,7 @@ func Services( return nil, errors.Wrapf(err, "service %s", service.Name) } - serviceSpec, err := convertService(client.ClientVersion(), namespace, service, networks, volumes, secrets, configs) + serviceSpec, err := Service(client.ClientVersion(), namespace, service, networks, volumes, secrets, configs) if err != nil { return nil, errors.Wrapf(err, "service %s", service.Name) } @@ -51,7 +51,8 @@ func Services( return result, nil } -func convertService( +// Service converts a ServiceConfig into a swarm ServiceSpec +func Service( apiVersion string, namespace Namespace, service composetypes.ServiceConfig,