mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
keeps defaults in CreateClientOptions but makes shares-* required?
This commit is contained in:
parent
5b8be255d7
commit
37c7d54bd3
@ -288,6 +288,8 @@ def write_node_config(c, config):
|
||||
|
||||
|
||||
def write_client_config(c, config):
|
||||
# note, config can be a plain dict, it seems -- see
|
||||
# test_configutil.py in test_create_client_config
|
||||
c.write("[client]\n")
|
||||
c.write("# Which services should this client connect to?\n")
|
||||
introducer = config.get("introducer", None) or ""
|
||||
|
@ -88,6 +88,9 @@ class ConfigUtilTests(GridTestMixin, unittest.TestCase):
|
||||
"webport": "tcp:3456",
|
||||
"hide-ip": False,
|
||||
"listen": "none",
|
||||
"shares-needed": "1",
|
||||
"shares-happy": "1",
|
||||
"shares-total": "1",
|
||||
}
|
||||
create_node.write_node_config(f, opts)
|
||||
create_node.write_client_config(f, opts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user