From 7c221de3a0818cf73d90cf600cf64719c06861d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Thu, 16 Jun 2016 17:38:18 +0200 Subject: [PATCH] functions: fixed cpulist_pack to correctly deal with wrong arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- tuned/utils/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/utils/commands.py b/tuned/utils/commands.py index 0cbe023..80c3670 100644 --- a/tuned/utils/commands.py +++ b/tuned/utils/commands.py @@ -215,9 +215,9 @@ class commands: # CPU list through cpulist_unpack first, so see its description about the # details of the input syntax def cpulist_pack(self, l): + l = self.cpulist_unpack(l) if l is None or len(l) == 0: return l - l = self.cpulist_unpack(l) i = 0 j = i rl = []