From 1514c4ace7c007ddb68ca746eb20a5b66a4ec3e4 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Tue, 7 Jan 2020 17:55:47 +0800 Subject: [PATCH] fix: next marker format --- pkg/cloudcommon/db/db_dispatcher.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/cloudcommon/db/db_dispatcher.go b/pkg/cloudcommon/db/db_dispatcher.go index 583bf71ce5..5ac87f5718 100644 --- a/pkg/cloudcommon/db/db_dispatcher.go +++ b/pkg/cloudcommon/db/db_dispatcher.go @@ -574,10 +574,7 @@ func ListItems(manager IModelManager, ctx context.Context, userCred mcclient.Tok } nextMarker := "" if int64(len(retList)) > limit { - markerObj, _ := retList[limit].Get(pagingConf.MarkerField) - if markerObj != nil { - nextMarker = fmt.Sprintf("%s", markerObj) - } + nextMarker, _ = retList[limit].GetString(pagingConf.MarkerField) retList = retList[:limit] } retResult := modulebase.ListResult{