diff --git a/apps/node_man/models.py b/apps/node_man/models.py index aed50d23cb..99d735b447 100644 --- a/apps/node_man/models.py +++ b/apps/node_man/models.py @@ -177,6 +177,8 @@ class KeyEnum(Enum): ADD_HOST_BIZ_BLACKLIST = "ADD_HOST_BIZ_BLACKLIST" # CMDB内置云区域IDS CMDB_INTERNAL_CLOUD_IDS = "CMDB_INTERNAL_CLOUD_IDS" + # 业务最大插件版本 + PLUGIN_VERSION_CONFIG = "PLUGIN_VERSION_CONFIG" key = models.CharField(_("键"), max_length=255, db_index=True, primary_key=True) v_json = JSONField(_("值")) @@ -193,9 +195,7 @@ def map_values(self, objs, source, target): def fetch_isp(self): isps = dict(GlobalSettings.objects.filter(key="isp").values_list("key", "v_json")).get("isp", []) - result = self.map_values( - isps, lambda isp: isp["isp"], lambda isp: {"isp_name": isp["isp_name"]} - ) + result = self.map_values(isps, lambda isp: isp["isp"], lambda isp: {"isp_name": isp["isp_name"]}) return result