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,