From 44a44738ecbd4e3d22be327854dfbfb925f45826 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 26 Jun 2017 21:26:06 +0100 Subject: [PATCH] take new args for 'restart' too, fixes test failure --- src/wormhole/server/cli.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wormhole/server/cli.py b/src/wormhole/server/cli.py index e3384f0..c644588 100644 --- a/src/wormhole/server/cli.py +++ b/src/wormhole/server/cli.py @@ -117,9 +117,13 @@ def start(cfg, signal_error, no_daemon, blur_usage, advertise_version, "--disallow-list", is_flag=True, help="never send list of allocated nameplates", ) +@_relay_database_path +@_stats_json_path @click.pass_obj def restart(cfg, signal_error, no_daemon, blur_usage, advertise_version, - transit, rendezvous, disallow_list): + transit, rendezvous, disallow_list, relay_database_path, + stats_json_path, + ): """ Re-start a relay server """ @@ -131,6 +135,8 @@ def restart(cfg, signal_error, no_daemon, blur_usage, advertise_version, cfg.rendezvous = str(rendezvous) cfg.signal_error = signal_error cfg.allow_list = not disallow_list + cfg.relay_database_path = relay_database_path + cfg.stats_json_path = stats_json_path restart_server(cfg)