Backupbot Revolution #23

Merged
moritz merged 31 commits from backupbot_revolution into main 2023-10-09 10:54:22 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 6fc62b5516 - Show all commits

View File

@ -104,7 +104,7 @@ def copy_secrets(apps):
for s in services:
app_name = s.attrs['Spec']['Labels']['com.docker.stack.namespace']
if (app_name in apps and
app_secs := s.attrs['Spec']['TaskTemplate']['ContainerSpec'].get('Secrets')):
(app_secs := s.attrs['Spec']['TaskTemplate']['ContainerSpec'].get('Secrets'))):
if not container_by_service.get(s.name):
logging.error(
f"Container {s.name} is not running, secrets can not be copied.")