diff --git a/apps/backend/subscription/steps/agent.py b/apps/backend/subscription/steps/agent.py index 1a0a9be19..e3a300491 100644 --- a/apps/backend/subscription/steps/agent.py +++ b/apps/backend/subscription/steps/agent.py @@ -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"] diff --git a/apps/node_man/views/package_manage.py b/apps/node_man/views/package_manage.py index f0db24d76..55162724e 100644 --- a/apps/node_man/views/package_manage.py +++ b/apps/node_man/views/package_manage.py @@ -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 # 初始化某个版本的包