提示词全部改为中文

This commit is contained in:
iwechatcom
2025-06-08 12:50:52 +08:00
parent 5b669d6b2f
commit 8f352be72b
4 changed files with 12 additions and 12 deletions

View File

@@ -15,21 +15,21 @@ class IpmiTool:
if result.returncode != 0:
raise RuntimeError(
f'execute command {cmd} failed:{result.stderr}'
f'执行命令 {cmd} 失败:{result.stderr}'
)
return result.stdout
def mc_info(self) -> str:
"""
execute ipmitool command mc info
执行 ipmitool 命令 mc info
:return:
"""
return self.run_cmd(cmd='mc info')
def sensor(self) -> str:
"""
execute ipmitool command sensor
执行 ipmitool 命令 sensor
:return:
"""
return self.run_cmd(cmd='sensor')