From 5af4a5c635aae3ee40da7c39c7286f9f07581937 Mon Sep 17 00:00:00 2001 From: clore Date: Tue, 4 Mar 2025 12:37:30 +0300 Subject: [PATCH] fix - volume.name --- lib/docker_deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docker_deploy.py b/lib/docker_deploy.py index bcf215b..627828e 100644 --- a/lib/docker_deploy.py +++ b/lib/docker_deploy.py @@ -172,7 +172,7 @@ def deploy(validated_containers, allowed_running_containers=[], can_run_partner_ all_use_volumes=list(dict.fromkeys(all_use_volumes)) for volume in local_volume_list: - if volume.name[:6]=="clore_" and not volume in all_use_volumes: + if volume.name[:6]=="clore_" and not volume.name in all_use_volumes: try: volume.remove() except Exception as e: