functions: fixed cpulist_pack to correctly deal with wrong arguments
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
7ab7be15d0
commit
7c221de3a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue