Skip to content

Commit

Permalink
feat: 安装预设插件锁定版本(closed #2482)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpyoung3 committed Dec 20, 2024
1 parent f62ff72 commit bc1994c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/backend/subscription/steps/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def get_matching_config_tmpl_objs(
return self.config_tmpl_obj_gby_os_key.get(self.get_os_key(os_type, cpu_arch), [])

def check_biz_version(self, package: models.Packages, bk_biz_id: int):
# 如果设定了业务最大版本,则判断当前版本是否大于业务设定的最大版本
"""如果设定了业务最大版本,则判断当前版本是否大于业务设定的最大版本"""
plugin_version_config = self.plugin_version_config()
if str(bk_biz_id) in plugin_version_config:
biz_version_config = plugin_version_config[str(bk_biz_id)]
Expand Down
2 changes: 1 addition & 1 deletion apps/node_man/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class TimeUnit:
DEFAULT_CLOUD = int(os.environ.get("DEFAULT_CLOUD", 0))
DEFAULT_CLOUD_NAME = os.environ.get("DEFAULT_CLOUD_NAME", _("直连区域"))
# 未分配管控区域ID
UNASSIGNED_CLOUD_ID = int(os.environ.get("BKAPP_UNASSIGNED_CLOUD_ID", 90000001))
UNASSIGNED_CLOUD_ID = int(float(os.environ.get("BKAPP_UNASSIGNED_CLOUD_ID", 90000001)))
# 自动选择接入点ID
DEFAULT_AP_ID = int(os.environ.get("DEFAULT_AP_ID", -1))
# 自动选择安装通道ID
Expand Down

0 comments on commit bc1994c

Please sign in to comment.