From 3a5cd57bb4be17f345ca2085af1c4dcb7c68b12f Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 2 Dec 2020 08:19:48 -0600 Subject: target is not tag remove mistaken use of target being used for tag Signed-off-by: baude --- pkg/api/handlers/compat/images_build.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pkg/api/handlers') diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go index a4bb72140..149050209 100644 --- a/pkg/api/handlers/compat/images_build.go +++ b/pkg/api/handlers/compat/images_build.go @@ -104,9 +104,6 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { if len(query.Tag) > 0 { output = query.Tag[0] } - if _, found := r.URL.Query()["target"]; found { - output = query.Target - } var additionalNames []string if len(query.Tag) > 1 { @@ -162,7 +159,6 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { reporter := channel.NewWriter(make(chan []byte, 1)) defer reporter.Close() - buildOptions := imagebuildah.BuildOptions{ ContextDirectory: contextDirectory, PullPolicy: pullPolicy, -- cgit v1.2.3-54-g00ecf