mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 04:43:58 +00:00
script: Add --no-headings option to purge-old-deployments.
This parameter is somewhat useful, and adding this also fixes a
regression where purge-old-deployments would crash since the changes
around c5580607a7 because of
inconsistent supported args lists.
This commit is contained in:
@@ -31,13 +31,14 @@ def remove_unused_versions_dir(args: argparse.Namespace) -> None:
|
||||
except FileNotFoundError:
|
||||
return
|
||||
|
||||
no_headings = getattr(args, "no_headings", False)
|
||||
may_be_perform_purging(
|
||||
dirs_to_purge,
|
||||
{current_version_dir},
|
||||
"yarn cache",
|
||||
args.dry_run,
|
||||
args.verbose,
|
||||
args.no_headings,
|
||||
no_headings,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user