1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(azure): parse validation error [EE-2334] (#6341)

fixes [EE-2334]
This commit is contained in:
Chaim Lev-Ari 2022-01-13 07:29:32 +02:00 committed by GitHub
parent 584a46d9d4
commit 95fbf7500c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,11 @@ func (transport *Transport) proxyContainerGroupPutRequest(request *http.Request)
}
if validationResponse.StatusCode >= 200 && validationResponse.StatusCode < 300 {
resp := &http.Response{}
resp := &http.Response{
Header: http.Header{
http.CanonicalHeaderKey("content-type"): []string{"application/json"},
},
}
errObj := map[string]string{
"message": "A container instance with the same name already exists inside the selected resource group",
}