Skip to content

Commit

Permalink
feat: 安装 Agent 将上报的 CPU 架构信息更新到 CMDB (closed TencentBlueKing#1708)
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 3347
  • Loading branch information
Huayeaaa committed Mar 5, 2024
1 parent af052ad commit 744f74b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down
12 changes: 2 additions & 10 deletions apps/node_man/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 744f74b

Please sign in to comment.