mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-13 07:31:21 +08:00
Reformat file with black
This commit is contained in:
parent
e14cba4114
commit
38b36f03bb
1 changed files with 4 additions and 1 deletions
|
|
@ -1247,7 +1247,10 @@ class NPBackupRunner:
|
||||||
for entry in ["last", "hourly", "daily", "weekly", "monthly", "yearly"]:
|
for entry in ["last", "hourly", "daily", "weekly", "monthly", "yearly"]:
|
||||||
value = self.repo_config.g(f"repo_opts.retention_policy.{entry}")
|
value = self.repo_config.g(f"repo_opts.retention_policy.{entry}")
|
||||||
if value:
|
if value:
|
||||||
if not self.repo_config.g("repo_opts.retention_policy.keep_within") or entry == "last":
|
if (
|
||||||
|
not self.repo_config.g("repo_opts.retention_policy.keep_within")
|
||||||
|
or entry == "last"
|
||||||
|
):
|
||||||
policy[f"keep-{entry}"] = value
|
policy[f"keep-{entry}"] = value
|
||||||
else:
|
else:
|
||||||
# We need to add a type value for keep-within
|
# We need to add a type value for keep-within
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue