mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-19 01:46:32 +08:00
Reformat file with black
This commit is contained in:
parent
5d27e272a9
commit
40e1ea6122
1 changed files with 6 additions and 2 deletions
|
@ -745,13 +745,17 @@ def get_repo_config(
|
||||||
try:
|
try:
|
||||||
prometheus_backup_job = repo_config.g("prometheus.backup_job")
|
prometheus_backup_job = repo_config.g("prometheus.backup_job")
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logger.info("No prometheus backup job found in repo config. Setting backup job to machine id")
|
logger.info(
|
||||||
|
"No prometheus backup job found in repo config. Setting backup job to machine id"
|
||||||
|
)
|
||||||
prometheus_backup_job = full_config.g("identity.machine_id")
|
prometheus_backup_job = full_config.g("identity.machine_id")
|
||||||
prometheus_group = None
|
prometheus_group = None
|
||||||
try:
|
try:
|
||||||
prometheus_group = repo_config.g("prometheus.group")
|
prometheus_group = repo_config.g("prometheus.group")
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logger.info("No prometheus group found in repo config. Setting prometheus group to machine group")
|
logger.info(
|
||||||
|
"No prometheus group found in repo config. Setting prometheus group to machine group"
|
||||||
|
)
|
||||||
prometheus_group = full_config.g("identity.machine_group")
|
prometheus_group = full_config.g("identity.machine_group")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue