keeps defaults in CreateClientOptions but makes shares-* required?

This commit is contained in:
meejah 2016-12-13 19:50:19 -07:00
parent 5b8be255d7
commit 37c7d54bd3
2 changed files with 5 additions and 0 deletions

View File

@ -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 ""

View File

@ -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)