Skip to content

Commit b087316

Browse files
authored
instance: fix ListImage total count (#209)
1 parent c6d0bc6 commit b087316

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/instance/v1/instance_utils.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@ func (r *ListVolumesResponse) UnsafeSetTotalCount(totalCount int) {
284284
r.TotalCount = uint32(totalCount)
285285
}
286286

287+
// UnsafeSetTotalCount should not be used
288+
// Internal usage only
289+
func (r *ListImagesResponse) UnsafeSetTotalCount(totalCount int) {
290+
r.TotalCount = uint32(totalCount)
291+
}
292+
287293
// UnsafeGetTotalCount should not be used
288294
// Internal usage only
289295
func (r *ListServersTypesResponse) UnsafeGetTotalCount() uint32 {

0 commit comments

Comments
 (0)