mirror of https://github.com/jumpserver/jumpserver
fix: 修复metrics获取terminal过滤is_deleted字段
parent
c3e2e536e0
commit
3f2925116e
|
@ -109,7 +109,7 @@ class ComponentsMetricsUtil(object):
|
|||
@staticmethod
|
||||
def get_components(tp=None):
|
||||
from .models import Terminal
|
||||
components = Terminal.objects.all().order_by('type')
|
||||
components = Terminal.objects.all(is_deleted=False).order_by('type')
|
||||
if tp:
|
||||
components = components.filter(type=tp)
|
||||
return components
|
||||
|
|
Loading…
Reference in New Issue