Escaped {{ }} correct

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-25 22:46:14 +01:00
parent 397e242e5b
commit d1f942bc58

View File

@ -155,7 +155,7 @@ def main():
for volume_name in volume_names: for volume_name in volume_names:
print(f'Start backup routine for volume: {volume_name}') print(f'Start backup routine for volume: {volume_name}')
containers = execute_shell_command(f"docker ps --filter volume=\"{volume_name}\" --format '{{.Names}}'") containers = execute_shell_command(f"docker ps --filter volume=\"{volume_name}\" --format '{{{{.Names}}}}'")
if not containers: if not containers:
print('Skipped due to no running containers using this volume.') print('Skipped due to no running containers using this volume.')
continue continue