tuned/bugfix-expand-variables-in-Plugin.patch
SuperSix173 14ca47c1e8 Upgrade to 2.24.1
Signed-off-by: SuperSix173 <liuchao173@huawei.com>
(cherry picked from commit 0fda307a94c82e03b88323f1973c1b6eb5ebff05)
2024-12-02 15:30:51 +08:00

26 lines
919 B
Diff

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