[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2809: Should be an error to put in unknown config items
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Aug 26 17:41:17 UTC 2016
#2809: Should be an error to put in unknown config items
--------------------------------+--------------------
Reporter: meejah | Owner:
Type: defect | Status: new
Priority: normal | Milestone: soon
Component: code-nodeadmin | Version: 1.11.0
Resolution: | Keywords:
Launchpad Bug: |
--------------------------------+--------------------
Changes (by warner):
* component: code-frontend => code-nodeadmin
* milestone: undecided => soon
Comment:
Oh, great idea! Let's add this to client.py, maybe as
`Client.validate_config()`. We need something to enumerate all sections
and all keys (but I think the `ConfigParser` can do this). We can put a
big string in client.py with a list of all `SECTION KEY` strings that are
legal, splitlines on it, turn it into a set, then `validate_config()` just
checks every line and throw a !ValueError (with the line number) if it
seens something that isn't on the list.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2809#comment:1>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list