Merge pull request #7237 from tb365/bugfix/tb-huawei-eip-delete-fix

huawei eip delete fix
This commit is contained in:
Zexi Li
2020-07-20 20:47:16 +08:00
committed by GitHub
@@ -15,6 +15,8 @@
package modules
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/multicloud/huawei/client/auth"
)
@@ -35,3 +37,8 @@ func NewEipManager(regionId string, projectId string, signer auth.Signer, debug
ResourceKeyword: "publicips",
}}
}
// https://support.huaweicloud.com/api-eip/eip_api_0005.html
func (self *SEipManager) Delete(id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error) {
return self.DeleteInContextWithSpec(self.ctx, id, "", nil, params, "")
}