mirror of
https://github.com/lkddi/dell-fans-controller-docker.git
synced 2026-04-14 11:20:54 +08:00
提示词全部改为中文
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user