diff --git a/pkg/controller/provider/web/ova/workload.go b/pkg/controller/provider/web/ova/workload.go index 1ad3f9854..5849a840b 100644 --- a/pkg/controller/provider/web/ova/workload.go +++ b/pkg/controller/provider/web/ova/workload.go @@ -23,17 +23,11 @@ type WorkloadHandler struct { } // Add routes to the `gin` router. -// no-op func (h *WorkloadHandler) AddRoutes(e *gin.Engine) { e.GET(WorkloadRoot, h.Get) } -// List resources in a REST collection. -func (h WorkloadHandler) List(ctx *gin.Context) { -} - // Get a specific REST resource. -// no-op func (h WorkloadHandler) Get(ctx *gin.Context) { status, err := h.Prepare(ctx) if status != http.StatusOK { diff --git a/pkg/controller/provider/web/ovirt/provider.go b/pkg/controller/provider/web/ovirt/provider.go index 3da26a27f..8e748e464 100644 --- a/pkg/controller/provider/web/ovirt/provider.go +++ b/pkg/controller/provider/web/ovirt/provider.go @@ -95,10 +95,7 @@ func (h *ProviderHandler) ListContent(ctx *gin.Context) (content []interface{}, ns := q.Get(base.NsParam) for _, collector := range list { if p, cast := collector.Owner().(*api.Provider); cast { - if p.Type() != api.OVirt { - continue - } - if ns != "" && ns != p.Namespace { + if p.Type() != api.OVirt || (ns != "" && ns != p.Namespace) { continue } if collector, found := h.Container.Get(p); found {