Skip to content

Commit

Permalink
feat: 提供 Agent 包管理后台基础接口 (closed #1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
ping15 committed Oct 31, 2024
1 parent cd17766 commit 56930f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions apps/backend/subscription/steps/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ def make_instances_migrate_actions(self, instances, auto_trigger=False, preview_
instance_actions[instance_id] = self.subscription_step.config["job_type"]
continue
instance_actions[instance_id] = job_type_map[self.subscription_step.config["job_type"]]
models.ProcessStatus.objects.filter(
bk_host_id=instance["host"]["bk_host_id"], name=models.ProcessStatus.GSE_AGENT_PROCESS_NAME
)

if instance_actions[instance_id] == backend_const.ActionNameType.UPGRADE_AGENT:
bk_host_id: int = instance["host"]["bk_host_id"]
Expand Down
2 changes: 1 addition & 1 deletion apps/node_man/views/package_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def version(self, request):
)

# 获取默认标签
if not default_version and any(tag["description"] == STABLE_DESCRIPTION for tag in tags):
if not default_version and any(_(tag["description"]) == STABLE_DESCRIPTION for tag in tags):
default_version = version

# 初始化某个版本的包
Expand Down

0 comments on commit 56930f6

Please sign in to comment.