Merge pull request #1328 from dotcloud/1307_url_port_delete-fix

Use utils.ParseRepositoryTag instead of strings.Split(name, ":") in server.ImageDelete
This commit is contained in:
Victor Vieux
2013-07-31 07:55:06 -07:00
4 changed files with 41 additions and 14 deletions
+1 -6
View File
@@ -793,12 +793,7 @@ func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Requ
remoteURL := r.FormValue("remote")
repoName := r.FormValue("t")
rawSuppressOutput := r.FormValue("q")
tag := ""
if strings.Contains(repoName, ":") {
remoteParts := strings.Split(repoName, ":")
tag = remoteParts[1]
repoName = remoteParts[0]
}
repoName, tag := utils.ParseRepositoryTag(repoName)
var context io.Reader