mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-31 22:36:37 +00:00
fix: 修复metrics获取terminal过滤is_deleted字段
This commit is contained in:
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
Block a user