mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 03:44:23 +00:00
cleanup
This commit is contained in:
parent
f0e3b69f90
commit
f0a9240f5f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user