mirror of https://github.com/jumpserver/jumpserver
perf: 优化自定义类型的冲突
parent
f85daa088f
commit
a6ab886968
|
@ -8,7 +8,7 @@ class CustomTypes(BaseType):
|
||||||
platforms = list(cls.get_custom_platforms())
|
platforms = list(cls.get_custom_platforms())
|
||||||
except Exception:
|
except Exception:
|
||||||
return []
|
return []
|
||||||
types = [p.type for p in platforms]
|
types = set([p.type for p in platforms])
|
||||||
return [(t, t) for t in types]
|
return [(t, t) for t in types]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in New Issue