Whoops fix Mounts path
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2023-11-10 21:53:34 +00:00
parent 98b5f077e2
commit 83834c6570
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def get_backup_cmds():
services = client.services.list()
for s in services:
labels = s.attrs['Spec']['Labels']
mounts = s.attrs['Spec']['Mounts']
mounts = s.attrs['Spec']['TaskTemplate']['ContainerSpec']['Mounts']
if (backup := labels.get('backupbot.backup')) and bool(backup):
stack_name = labels['com.docker.stack.namespace']
# Remove this lines to backup only a specific service