From 06e115bb0053427afe466d66bff48ff8843a9d40 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 5 Jan 2022 14:00:30 -0800 Subject: [PATCH] zulip_tools: Switch get_deploy_options to use shlex.split. This makes it honor quoting in the config file. --- scripts/lib/zulip_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.py index 862e1ff4c1..724d6f0631 100755 --- a/scripts/lib/zulip_tools.py +++ b/scripts/lib/zulip_tools.py @@ -562,7 +562,7 @@ def get_config_file() -> configparser.RawConfigParser: def get_deploy_options(config_file: configparser.RawConfigParser) -> List[str]: - return get_config(config_file, "deployment", "deploy_options", "").strip().split() + return shlex.split(get_config(config_file, "deployment", "deploy_options", "").strip()) def run_psql_as_postgres(