1
0
Fork 0

functions: fixed cpulist_pack to correctly deal with wrong arguments

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2016-06-16 17:38:18 +02:00
parent 7ab7be15d0
commit 7c221de3a0

View file

@ -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 = []