From 5f244e6cf355847afb94cef48af1dcee6df45dcd Mon Sep 17 00:00:00 2001 From: Dmitry Salakhov Date: Wed, 20 Jan 2021 09:26:55 +1300 Subject: [PATCH] fix: store wrapper version in portainer --- api/exec/compose_wrapper.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/exec/compose_wrapper.go b/api/exec/compose_wrapper.go index 18fe87d66..5f91795fd 100644 --- a/api/exec/compose_wrapper.go +++ b/api/exec/compose_wrapper.go @@ -13,10 +13,6 @@ import ( "github.com/portainer/portainer/api/http/proxy" ) -const ( - composeSyntaxMaxVersion = "3.8" -) - // ComposeWrapper is a wrapper for docker-compose binary type ComposeWrapper struct { binaryPath string @@ -37,7 +33,7 @@ func NewComposeWrapper(binaryPath string, proxyManager *proxy.Manager) *ComposeW // ComposeSyntaxMaxVersion returns the maximum supported version of the docker compose syntax func (w *ComposeWrapper) ComposeSyntaxMaxVersion() string { - return composeSyntaxMaxVersion + return portainer.ComposeSyntaxMaxVersion } // Up builds, (re)creates and starts containers in the background. Wraps `docker-compose up -d` command