mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
zulip_tools: Skip the lock directory.
This is the one special directory that usually lives in deployments/ and is not a deployment. Make sure we don't treat it as a deployment.
This commit is contained in:
@@ -46,6 +46,9 @@ def get_deployments_to_be_purged(recent_deployments):
|
||||
if not os.path.isdir(deployment):
|
||||
# Skip things like uwsgi sockets.
|
||||
continue
|
||||
if not os.path.exists(os.path.join(deployment, "zerver")):
|
||||
# Skip things like "lock" that aren't actually a deployment directory
|
||||
continue
|
||||
if deployment not in recent_deployments:
|
||||
deployments_to_purge.add(deployment)
|
||||
return deployments_to_purge
|
||||
|
Reference in New Issue
Block a user