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
12 changes: 6 additions & 6 deletions openstack/drs/v2/replicationconsistencygroups/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func FailOver(client *golangsdk.ServiceClient, id string) (r ActionResult) {
_, r.Err = client.Post(
actionURL(client, id),
map[string]interface{}{OsFailoverReplicationConsistencyGroup: nil},
&r.Body,
nil,
&golangsdk.RequestOpts{
OkCodes: []int{200},
})
Expand All @@ -192,7 +192,7 @@ func Sync(client *golangsdk.ServiceClient, id string) (r ActionResult) {
_, r.Err = client.Post(
actionURL(client, id),
map[string]interface{}{OsSyncReplicationConsistencyGroup: nil},
&r.Body,
nil,
&golangsdk.RequestOpts{
OkCodes: []int{200},
})
Expand All @@ -205,7 +205,7 @@ func Reverse(client *golangsdk.ServiceClient, id string) (r ActionResult) {
_, r.Err = client.Post(
actionURL(client, id),
map[string]interface{}{OsReverseReplicationConsistencyGroup: nil},
&r.Body,
nil,
&golangsdk.RequestOpts{
OkCodes: []int{200},
})
Expand All @@ -218,7 +218,7 @@ func Stop(client *golangsdk.ServiceClient, id string) (r ActionResult) {
_, r.Err = client.Post(
actionURL(client, id),
map[string]interface{}{OsStopReplicationConsistencyGroup: nil},
&r.Body,
nil,
&golangsdk.RequestOpts{
OkCodes: []int{200},
})
Expand All @@ -231,7 +231,7 @@ func Reprotect(client *golangsdk.ServiceClient, id string) (r ActionResult) {
_, r.Err = client.Post(
actionURL(client, id),
map[string]interface{}{OsReprotectReplicationConsistencyGroup: nil},
&r.Body,
nil,
&golangsdk.RequestOpts{
OkCodes: []int{200},
})
Expand Down Expand Up @@ -276,7 +276,7 @@ func Extend(client *golangsdk.ServiceClient, id string, ops ExtendReplicationVol
return
}

_, r.Err = client.Post(actionURL(client, id), b, &r.Body, &golangsdk.RequestOpts{
_, r.Err = client.Post(actionURL(client, id), b, nil, &golangsdk.RequestOpts{
OkCodes: []int{200},
})

Expand Down
2 changes: 1 addition & 1 deletion openstack/drs/v2/replications/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type Replication struct {
Progress string `json:"progress"`
FailureDetail string `json:"failure_detail"`
// RecordMetadata includes volume_type and multiattach currently.
RecordMetadata map[string]string `json:"record_metadata"`
RecordMetadata string `json:"record_metadata"`
}

// GetResult contains the body of getting detailed
Expand Down