Skip to content

Commit a01f86e

Browse files
authored
return SlowLogPage for slowlog (#344)
[RDS] return SlowLogPage for slowlog Signed-off-by: Frank Kloeker f.kloeker@telekom.de What this PR does / why we need it fix panic: interface conversion: pagination.Page is instances.ErrorLogPage, not instances.SlowLogPage Which issue this PR fixes I don't have an issue for that Special notes for your reviewer thanks! Reviewed-by: Anton Kachurin <katchuring@gmail.com>
1 parent 5d5a403 commit a01f86e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openstack/rds/v3/instances/requests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ func ListSlowLog(client *golangsdk.ServiceClient, opts DbSlowLogBuilder, instanc
384384
}
385385

386386
pageRdsList := pagination.NewPager(client, url, func(r pagination.PageResult) pagination.Page {
387-
return ErrorLogPage{pagination.SinglePageBase(r)}
387+
return SlowLogPage{pagination.SinglePageBase(r)}
388388
})
389389

390390
rdsheader := map[string]string{"Content-Type": "application/json"}

0 commit comments

Comments
 (0)