Fix bug not allowing users to run any context command when set to an aws context type.

When users have an “aws" context type, we try to exec the command (will execute context ls, context use, etc.) and when it fails because it doesn’t find the aws backend, then display the custom error for aws context type.

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
Guillaume Tardif 2020-09-04 10:19:40 +02:00
parent a0a0e391cb
commit adeba9b124
3 changed files with 19 additions and 20 deletions

View file

@ -28,7 +28,7 @@ import (
"github.com/docker/compose-cli/context/store"
)
var delegatedContextTypes = []string{store.DefaultContextType, store.AwsContextType}
var delegatedContextTypes = []string{store.DefaultContextType}
// ComDockerCli name of the classic cli binary
const ComDockerCli = "com.docker.cli"