#1544 use RawConfigParser for kojid
Merged 2 years ago by mikem. Opened 2 years ago by tkopecek.
tkopecek/koji issue1543  into  master

file modified
+2 -2
@@ -47,7 +47,7 @@ 

  import traceback

  import xml.dom.minidom

  import zipfile

- from six.moves.configparser import ConfigParser

+ from six.moves.configparser import RawConfigParser

  from fnmatch import fnmatch

  from gzip import GzipFile

  from optparse import OptionParser, SUPPRESS_HELP
@@ -6099,7 +6099,7 @@ 

          assert False  # pragma: no cover

  

      # load local config

-     config = ConfigParser()

+     config = RawConfigParser()

      config.read(options.configFile)

      for x in config.sections():

          if x != 'kojid':

We are using percent signs in host_principal_format. As python3 replaced
ConfigParser with SafeConfigParser, parsing now fails.

Fixes: https://pagure.io/koji/issue/1543

Metadata Update from @mfilip:
- Pull-request tagged with: testing-ready

2 years ago

Commit cef24b1 fixes this pull-request

Pull-Request has been merged by mikem

2 years ago