Skip to content

Commit 92098cd

Browse files
committed
BUG/MAJOR: runtime_info: fix panic when no runtimes
1 parent dc60ed7 commit 92098cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/information.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type GetHaproxyProcessInfoHandlerImpl struct {
4444
// Handle executing the request and returning a response
4545
func (h *GetHaproxyProcessInfoHandlerImpl) Handle(params information.GetHaproxyProcessInfoParams, principal interface{}) middleware.Responder {
4646
info, err := h.Client.Runtime.GetInfo()
47-
if err != nil || len(info) == 0 {
47+
if err != nil {
4848
code := misc.ErrHTTPInternalServerError
4949
msg := err.Error()
5050
e := &models.Error{

0 commit comments

Comments
 (0)