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

fixes [EE-2334]
pull/6398/head
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
1 changed files with 5 additions and 1 deletions

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",
}