This commit is contained in:
meejah 2019-04-09 11:32:48 -06:00
parent f0e3b69f90
commit f0a9240f5f

View File

@ -133,10 +133,12 @@ def add_grid_manager_cert(options):
fileutil.write(cert_path, cert_bytes)
# print("created {}: {} bytes".format(cert_fname, len(cert_bytes)))
with open(config_path, "w") as f:
cfg.write(f)
# XXX probably want a _Config.write_tahoe_cfg() or something? or just set_config() does that automagically
config.config.write(f)
# print("wrote {}".format(config_fname))
print("There are now {} certificates".format(len(gm_certs)), file=options.parent.parent.stderr)
cert_count = len(config.enumerate_section("grid_manager_certificates"))
print("There are now {} certificates".format(cert_count), file=options.parent.parent.stderr)
return 0