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: