Skip to content

Commit

Permalink
bootloader: split string for removal from cmdline
Browse files Browse the repository at this point in the history
Resolves: rhbz#1461279

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
  • Loading branch information
yarda committed Jun 14, 2017
1 parent 1ab378c commit f068a03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tuned/plugins/plugin_bootloader.py
Expand Up @@ -72,8 +72,9 @@ def _get_effective_options(self, options):
if op == "+" and vals != "":
cmdline += " " + vals
elif op == "-" and vals != "":
regex = re.escape(vals)
cmdline = re.sub(r"(\A|\s)" + regex + r"(?=\Z|\s)", r"", cmdline)
for p in vals.split():
regex = re.escape(p)
cmdline = re.sub(r"(\A|\s)" + regex + r"(?=\Z|\s)", r"", cmdline)
else:
cmdline += " " + val
cmdline = cmdline.strip()
Expand Down

0 comments on commit f068a03

Please sign in to comment.