Skip to content

Commit

Permalink
CNF-13015: Fix helper function not accessing the correct return result
Browse files Browse the repository at this point in the history
  • Loading branch information
fontivan committed Jun 12, 2024
1 parent d16d3bc commit b651198
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tuned/profiles/functions/function_lscpu_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def __init__(self):
def execute(self, args):
if not super(lscpu_check, self).execute(args):
return None
lscpu = self._cmd.execute("lscpu")
# Stdout is the 2nd result from the execute call
_, lscpu = self._cmd.execute("lscpu")
for i in range(0, len(args), 2):
if i + 1 < len(args):
if re.search(args[i], lscpu, re.MULTILINE):
Expand Down

0 comments on commit b651198

Please sign in to comment.