From 1de51a2bfd1b1fb3fc22e45dd58088de3d8eec03 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Thu, 22 Dec 2022 13:50:22 +0800 Subject: [PATCH] perf: asset xpack (#9234) Co-authored-by: feng <1304903146@qq.com> --- apps/assets/const/cloud.py | 4 +++- apps/assets/const/device.py | 4 +++- apps/assets/const/web.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/assets/const/cloud.py b/apps/assets/const/cloud.py index 1e16c9b13..be2637ddf 100644 --- a/apps/assets/const/cloud.py +++ b/apps/assets/const/cloud.py @@ -52,4 +52,6 @@ class CloudTypes(BaseType): @classmethod def get_community_types(cls): - return [cls.K8S] + return [ + cls.K8S, cls.PUBLIC, cls.PRIVATE + ] diff --git a/apps/assets/const/device.py b/apps/assets/const/device.py index 45cfb05e7..2508900dc 100644 --- a/apps/assets/const/device.py +++ b/apps/assets/const/device.py @@ -55,4 +55,6 @@ class DeviceTypes(BaseType): @classmethod def get_community_types(cls): - return [] + return [ + cls.GENERAL, cls.SWITCH, cls.ROUTER, cls.FIREWALL + ] diff --git a/apps/assets/const/web.py b/apps/assets/const/web.py index 061030ab9..88ff7f8f9 100644 --- a/apps/assets/const/web.py +++ b/apps/assets/const/web.py @@ -47,4 +47,6 @@ class WebTypes(BaseType): @classmethod def get_community_types(cls): - return [] + return [ + cls.WEBSITE, + ]