mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
zulip_tools: Unify get_config and get_config_bool using overloads.
This commit is contained in:
committed by
Tim Abbott
parent
0ff1fb2e21
commit
f9f9392b93
@@ -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
|
||||
|
Reference in New Issue
Block a user