mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-18 01:18:01 +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:
|
||||
prometheus_backup_job = repo_config.g("prometheus.backup_job")
|
||||
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_group = None
|
||||
try:
|
||||
prometheus_group = repo_config.g("prometheus.group")
|
||||
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")
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue