From 18a95d039ed8597f93535a93472431ed52c9f242 Mon Sep 17 00:00:00 2001 From: Adriaan Schmidt Date: Tue, 9 Jul 2024 06:05:14 +0200 Subject: [PATCH] fix: expand variables in plugin_irq Signed-off-by: Adriaan Schmidt --- tuned/plugins/plugin_irq.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuned/plugins/plugin_irq.py b/tuned/plugins/plugin_irq.py index 09684383..ee25bf44 100644 --- a/tuned/plugins/plugin_irq.py +++ b/tuned/plugins/plugin_irq.py @@ -94,7 +94,7 @@ def _instance_init(self, instance): instance._has_static_tuning = True instance._has_dynamic_tuning = False - affinity = instance.options.get("affinity") + affinity = self._variables.expand(instance.options.get("affinity")) affinity_list = self._cmd.cpulist_unpack(affinity) if len(affinity.strip()) == 0: # empty affinity in profile -> assume it's intentional @@ -105,7 +105,7 @@ def _instance_init(self, instance): log.error("Instance '%s' with invalid affinity '%s'. Deactivating." % (instance.name, affinity)) instance._active = False - mode = instance.options.get("mode") + mode = self._variables.expand(instance.options.get("mode")) if mode not in ["set", "intersect"]: log.error("Invalid operating mode '%s' for instance '%s'. Using the default 'set' instead." % (mode, instance.name))