fix error messages

This commit is contained in:
Moritz 2023-09-22 18:33:42 +02:00
parent 15a552ef8b
commit 1f06af95eb
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ def get_backup_cmds():
container = container_by_service.get(s.name)
if not container:
logging.error(
"Container {s.name} is not running, hooks can not be executed")
f"Container {s.name} is not running, hooks can not be executed")
if prehook := labels.get('backupbot.backup.pre-hook'):
pre_commands[container] = prehook
if posthook := labels.get('backupbot.backup.post-hook'):
@ -107,7 +107,7 @@ def copy_secrets(apps):
app_secs := s.attrs['Spec']['TaskTemplate']['ContainerSpec'].get('Secrets')):
if not container_by_service.get(s.name):
logging.error(
"Container {s.name} is not running, secrets can not be copied.")
f"Container {s.name} is not running, secrets can not be copied.")
continue
container_id = container_by_service[s.name].id
for sec in app_secs: