diff --git a/apps/backend/tests/components/collections/agent_new/test_install.py b/apps/backend/tests/components/collections/agent_new/test_install.py index 85c9fc92e..8a63b1ad4 100644 --- a/apps/backend/tests/components/collections/agent_new/test_install.py +++ b/apps/backend/tests/components/collections/agent_new/test_install.py @@ -77,7 +77,6 @@ def init_mock_clients(self): ), ) - def init_redis_data(self): # 初始化redis数据,用于schedule时读取解析 for sub_inst_id in self.common_inputs["subscription_instance_ids"]: diff --git a/apps/node_man/constants.py b/apps/node_man/constants.py index fa194b995..a1a23c7ba 100644 --- a/apps/node_man/constants.py +++ b/apps/node_man/constants.py @@ -1151,16 +1151,8 @@ class OsBitType(EnhanceEnum): @classmethod def _get_member__alias_map(cls) -> Dict[Enum, str]: - return { - cls.BIT32: _("操作系统位数:32-bit"), - cls.BIT64: _("操作系统位数:64-bit"), - cls.ARM64: _("操作系统位数:arm-64bit") - } + return {cls.BIT32: _("操作系统位数:32-bit"), cls.BIT64: _("操作系统位数:64-bit"), cls.ARM64: _("操作系统位数:arm-64bit")} @classmethod def cpu_type__bit_map(cls): - return { - CpuType.x86: cls.BIT32.value, - CpuType.x86_64: cls.BIT64.value, - CpuType.aarch64: cls.ARM64.value - } + return {CpuType.x86: cls.BIT32.value, CpuType.x86_64: cls.BIT64.value, CpuType.aarch64: cls.ARM64.value}