fix error messages
This commit is contained in:
parent
15a552ef8b
commit
1f06af95eb
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue