Whoops fix Mounts path
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
98b5f077e2
commit
83834c6570
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue