Gather stale backup process containers

This commit is contained in:
Einar Forselv 2019-12-08 00:32:39 +01:00
parent d9e5a62458
commit 5082244949
1 changed files with 6 additions and 0 deletions

View File

@ -330,6 +330,12 @@ class RunningContainers:
for container_data in all_containers:
container = Container(container_data)
# Gather stale backup process containers
if (self.this_container.image == container.image
and not container.is_running
and container.is_backup_process_container):
self.stale_backup_process_containers.append(container)
# We only care about running containers
if not container.is_running:
continue