Re: [PATCH rhel6-branch] Fix parsing of ifcfg OPTIONS parameter (#597205)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack.

On 05/28/2010 01:37 PM, Radek Vykydal wrote:
---
  simpleconfig.py |    4 +---
  1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/simpleconfig.py b/simpleconfig.py
index 23fcaaa..d00f52f 100644
--- a/simpleconfig.py
+++ b/simpleconfig.py
@@ -112,9 +112,7 @@ class IfcfgFile(SimpleConfigFile):
              line = line.strip()
              if line.startswith("#") or line == '':
                  continue
-            fields = line.split('=', 2)
-            if len(fields)<  2:
-                continue
+            fields = line.split('=', 1)
              key = uppercase_ASCII_string(fields[0])
              value = fields[1]
              # XXX hack

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux