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