zulip_tools: Unify get_config and get_config_bool using overloads.

This commit is contained in:
Alex Vandiver
2024-03-05 16:16:31 +00:00
committed by Tim Abbott
parent 0ff1fb2e21
commit f9f9392b93
4 changed files with 21 additions and 20 deletions

View File

@@ -18,7 +18,7 @@ from scripts.lib.zulip_tools import (
ENDC,
OKGREEN,
WARNING,
get_config_bool,
get_config,
get_config_file,
get_tornado_ports,
has_application_server,
@@ -185,7 +185,7 @@ if has_application_server():
if (
action == "restart"
and not args.less_graceful
and get_config_bool(config_file, "application_server", "rolling_restart")
and get_config(config_file, "application_server", "rolling_restart", False)
and os.path.exists("/home/zulip/deployments/uwsgi-control")
):
# See if it's currently running