mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-03 03:36:44 +00:00
allow 'anything valid' sections
This commit is contained in:
parent
38e6557f81
commit
975491b519
@ -95,8 +95,11 @@ class ValidConfiguration(object):
|
||||
:return: True if the given section name, ite name pair is valid, False
|
||||
otherwise.
|
||||
"""
|
||||
valid_items = self._static_valid_sections.get(section_name, ())
|
||||
if valid_items is None:
|
||||
return True
|
||||
return (
|
||||
item_name in self._static_valid_sections.get(section_name, ()) or
|
||||
item_name in valid_items or
|
||||
self._is_valid_item(section_name, item_name)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user