Skip to content

Commit 033f08a

Browse files
fix: Fix the issue where an error occurs on the runtime environment page when Docker is not installed. (#9615)
1 parent a83a669 commit 033f08a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agent/app/service/runtime.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ func (r *RuntimeService) Page(req request.RuntimeSearch) (int64, []response.Runt
211211
if err != nil {
212212
return 0, nil, err
213213
}
214+
if len(runtimes) == 0 {
215+
return 0, res, nil
216+
}
214217
if err = SyncRuntimesStatus(runtimes); err != nil {
215218
return 0, nil, err
216219
}

0 commit comments

Comments
 (0)