Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openstack/iec/v1/servers/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func DeleteServers(client *golangsdk.ServiceClient, opts DeleteOptsBuilder) (r D

var resp *http.Response
resp, r.Err = client.Post(deleteURL, body, nil, &golangsdk.RequestOpts{
OkCodes: []int{http.StatusNoContent},
OkCodes: []int{http.StatusAccepted},
})
if r.Err != nil {
return
Expand Down
4 changes: 2 additions & 2 deletions openstack/iec/v1/servers/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type JobExecResult struct {
commonResult
}

//执行创建image异步接口时返回的jobid结构
// Job 执行创建/删除接口时返回的jobid结构
type Job struct {
// job id of create image
Id string `json:"job_id"`
Expand All @@ -74,7 +74,7 @@ func (r commonResult) ExtractJob() (Job, error) {
return j, err
}

//Server struct is a serverIds structure returned when you create a server
// ServerIDs is a serverIds structure returned when you create a server
type ServerIDs struct {
IDs []string `json:"server_ids"`
}
Expand Down