From 6fc62b551629cc93e02bc9dc077be2c880c66d26 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 3 Oct 2023 18:19:43 +0200 Subject: [PATCH] fix typo --- backupbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backupbot.py b/backupbot.py index 89f27a1..30ce01b 100755 --- a/backupbot.py +++ b/backupbot.py @@ -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.")