fix(region): huawei eip disassociate (#19243)

This commit is contained in:
屈轩
2024-01-12 19:31:58 +08:00
committed by GitHub
parent 441bb2ca2c
commit a96158ee74
4 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ require (
k8s.io/client-go v0.19.3
k8s.io/cluster-bootstrap v0.19.3
moul.io/http2curl/v2 v2.3.0
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20240112065141-316e1de9883b
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20240112111311-0f202cdb717d
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32
yunion.io/x/jsonutils v1.0.1-0.20230613121553-0f3b41e2ef19
yunion.io/x/log v1.0.1-0.20230411060016-feb3f46ab361
+2 -2
View File
@@ -1201,8 +1201,8 @@ sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20240112065141-316e1de9883b h1:r2cVJz9knndKPZLkuqsYwRbPTmXBl5gXN32RFNJ/f8g=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20240112065141-316e1de9883b/go.mod h1:aj1gR9PPb6eqqKOwvANe26CoZFY8ydmXy0fuvgKYXH0=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20240112111311-0f202cdb717d h1:iu+TpbxDu60gYMl/c34NXPgu/RcSvlz7Cm/xKa41lWg=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20240112111311-0f202cdb717d/go.mod h1:aj1gR9PPb6eqqKOwvANe26CoZFY8ydmXy0fuvgKYXH0=
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32 h1:v7POYkQwo1XzOxBoIoRVr/k0V9Y5JyjpshlIFa9raug=
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32/go.mod h1:Uxuou9WQIeJXNpy7t2fPLL0BYLvLiMvGQwY7Qc6aSws=
yunion.io/x/jsonutils v0.0.0-20190625054549-a964e1e8a051/go.mod h1:4N0/RVzsYL3kH3WE/H1BjUQdFiWu50JGCFQuuy+Z634=
+1 -1
View File
@@ -1465,7 +1465,7 @@ sigs.k8s.io/structured-merge-diff/v4/value
# sigs.k8s.io/yaml v1.2.0
## explicit; go 1.12
sigs.k8s.io/yaml
# yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20240112065141-316e1de9883b
# yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20240112111311-0f202cdb717d
## explicit; go 1.18
yunion.io/x/cloudmux/pkg/apis
yunion.io/x/cloudmux/pkg/apis/billing
+4 -1
View File
@@ -192,7 +192,10 @@ type akClient struct {
func (self *akClient) Do(req *http.Request) (*http.Response, error) {
req.Header.Del("Accept")
if req.Method == string(httputils.GET) || req.Method == string(httputils.DELETE) || req.Method == string(httputils.PATCH) && !strings.HasPrefix(req.Host, "modelarts") {
if req.Method == string(httputils.GET) ||
req.Method == string(httputils.DELETE) ||
req.Method == string(httputils.PATCH) && !strings.HasPrefix(req.Host, "modelarts") ||
strings.HasSuffix(req.URL.Path, "disassociate-instance") {
req.Header.Del("Content-Length")
}
if strings.HasPrefix(req.Host, "modelarts") && req.Method == string(httputils.PATCH) {