Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 660676 Details for
Bug 885500
tuned ConfigParser use is broken when key contains ":"
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Another fix
0001-loader-do-not-treat-colons-as-separators-in-tuned.co.patch (text/plain), 1.25 KB, created by
Jaroslav Škarvada
on 2012-12-10 10:04:21 UTC
(
hide
)
Description:
Another fix
Filename:
MIME Type:
Creator:
Jaroslav Škarvada
Created:
2012-12-10 10:04:21 UTC
Size:
1.25 KB
patch
obsolete
>From 57f903e3d42f6d6cfa94162f97495ae5e57deceb Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com> >Date: Mon, 10 Dec 2012 10:36:02 +0100 >Subject: [PATCH] loader: do not treat colons (:) as separators in tuned.conf > >Resolves: rhbz#885500 >--- > tuned/profiles/loader.py | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > >diff --git a/tuned/profiles/loader.py b/tuned/profiles/loader.py >index 497c2cf..fdb23c6 100644 >--- a/tuned/profiles/loader.py >+++ b/tuned/profiles/loader.py >@@ -9,6 +9,19 @@ from tuned.profiles.exceptions import InvalidProfileException > > log = tuned.logs.get() > >+class TunedConfigParser(ConfigParser.SafeConfigParser): >+ OPTCRE = re.compile( >+ r'(?P<option>[^=\s][^=]*)' >+ r'\s*(?P<vi>[=])\s*' >+ r'(?P<value>.*)$' >+ ) >+ OPTCRE_NV = re.compile( >+ r'(?P<option>[^=\s][^=]*)' >+ r'\s*(?:' >+ r'(?P<vi>[=])\s*' >+ r'(?P<value>.*))?$' >+ ) >+ > class Loader(object): > """ > Profiles loader. >@@ -72,7 +85,7 @@ class Loader(object): > profiles.append(profile) > > def _load_config_data(self, file_name): >- parser = ConfigParser.SafeConfigParser(allow_no_value=True) >+ parser = TunedConfigParser(allow_no_value=True) > try: > parser.read(file_name) > except ConfigParser.Error as e: >-- >1.7.11.7 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 885500
:
660439
| 660676