This commit is contained in:
		@ -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:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user