Browse Source

perf: asset xpack (#9234)

Co-authored-by: feng <1304903146@qq.com>
pull/9235/head
fit2bot 2 years ago committed by GitHub
parent
commit
1de51a2bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/assets/const/cloud.py
  2. 4
      apps/assets/const/device.py
  3. 4
      apps/assets/const/web.py

4
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
]

4
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
]

4
apps/assets/const/web.py

@ -47,4 +47,6 @@ class WebTypes(BaseType):
@classmethod
def get_community_types(cls):
return []
return [
cls.WEBSITE,
]

Loading…
Cancel
Save