1 Star 0 Fork 21

SuperSix173/tuned

forked from src-openEuler/tuned 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-expand-variables-in-Plugin.patch 919 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 48a01d08ea325354c37b8f68c02c28fa424ddff6 Mon Sep 17 00:00:00 2001
From: Adriaan Schmidt <adriaan.schmidt@siemens.com>
Date: Fri, 20 Sep 2024 09:01:54 +0800
Subject: [PATCH] fix:expand variables in Plugin._verify_all_device_commands
---
tuned/plugins/base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuned/plugins/base.py b/tuned/plugins/base.py
index 784d44d..c43cbb6 100644
--- a/tuned/plugins/base.py
+++ b/tuned/plugins/base.py
@@ -452,7 +452,7 @@ class Plugin(object):
def _verify_all_device_commands(self, instance, devices, ignore_missing):
ret = True
for command in [command for command in list(self._commands.values()) if command["per_device"]]:
- new_value = instance.options.get(command["name"], None)
+ new_value = self._variables.expand(instance.options.get(command["name"], None))
if new_value is None:
continue
for device in devices:
--
2.43.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/SuperSix173/tuned.git
git@gitee.com:SuperSix173/tuned.git
SuperSix173
tuned
tuned
master

搜索帮助