PLR1704: fix

This commit is contained in:
Jörg Thalheim
2025-08-20 20:00:31 +02:00
parent c9a709783a
commit 61a647b436
4 changed files with 17 additions and 17 deletions

View File

@@ -11,9 +11,9 @@ def create_backup(machine: Machine, provider: str | None = None) -> None:
msg = "No providers specified"
raise ClanError(msg)
with host.host_connection() as ssh:
for provider in backup_scripts["providers"]:
for prov in backup_scripts["providers"]:
proc = ssh.run(
[backup_scripts["providers"][provider]["create"]],
[backup_scripts["providers"][prov]["create"]],
)
if proc.returncode != 0:
msg = "failed to start backup"