#527 runroot could ignore config sections
Closed: Fixed 5 years ago Opened 5 years ago by mikem.

The runroot plugin is overly picky about config section names.
Currently, it does this when reading its config:

count = 0
while True:
    section_name = 'path%d' % count
    if not cp.has_section(section_name):
    count += 1

So, if you had sections named [path1], [path2], and [path3], none of them would be considered because of the lack of a [path0]. Likewise, if you skipped a number in the middle (perhaps because you removed an entry), then the later entries would be ignored, without so much as a warning.

Certainly admins need to be careful when creating this file, but I think this is overly picky.

Metadata Update from @julian8628:
- Issue set to the milestone: 1.14

4 years ago

Login to comment on this ticket.