From cccbf6f11e4c5c105ca1047673f63342a20953b3 Mon Sep 17 00:00:00 2001 From: Tomas Korbar Date: Wed, 13 Mar 2019 14:45:15 +0100 Subject: [PATCH] Fix typo in profile_recommender Execute method from Commands class takes array of strings as arguments to execute not a name of executable. This caused bad format of logged error message in case of failure of execute method. Signed-off-by: Tomas Korbar --- tuned/utils/profile_recommender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/utils/profile_recommender.py b/tuned/utils/profile_recommender.py index 6ab97a5..df27184 100644 --- a/tuned/utils/profile_recommender.py +++ b/tuned/utils/profile_recommender.py @@ -67,7 +67,7 @@ class ProfileRecommender: value = r"^$" if option == "virt": if not re.match(value, - self._commands.execute("virt-what")[1], re.S): + self._commands.execute(["virt-what"])[1], re.S): match = False elif option == "system": if not re.match(value,