mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(common): always return next_marker
This commit is contained in:
@@ -133,7 +133,7 @@ func ListResult2JSONWithKey(result *ListResult, key string) jsonutils.JSONObject
|
||||
if result.Offset > 0 {
|
||||
obj.Add(jsonutils.NewInt(int64(result.Offset)), "offset")
|
||||
}
|
||||
if len(result.NextMarker) > 0 {
|
||||
if len(result.NextMarker) > 0 || len(result.MarkerField) > 0 {
|
||||
obj.Add(jsonutils.NewString(result.NextMarker), "next_marker")
|
||||
}
|
||||
if len(result.MarkerField) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user