mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-06-01 07:29:56 +02:00
fix ruff issues
This commit is contained in:
parent
a64dd12a9c
commit
3ccb599188
|
@ -121,12 +121,12 @@ class PrometheusSD:
|
||||||
|
|
||||||
if config.config["pve"]["token_name"] and not config.config["pve"]["token_value"]:
|
if config.config["pve"]["token_name"] and not config.config["pve"]["token_value"]:
|
||||||
self.log.sysexit_with_message(
|
self.log.sysexit_with_message(
|
||||||
f"Option 'pve.token_name' require 'pve.token_value' to be set"
|
"Option 'pve.token_name' require 'pve.token_value' to be set"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not config.config["pve"]["token_name"] and not config.config["pve"]["password"]:
|
if not config.config["pve"]["token_name"] and not config.config["pve"]["password"]:
|
||||||
self.log.sysexit_with_message(
|
self.log.sysexit_with_message(
|
||||||
f"Neither password nor API token have been set for pve authentication"
|
"Neither password nor API token have been set for pve authentication"
|
||||||
)
|
)
|
||||||
|
|
||||||
self.logger.info(f"Using config file {config.config_file}")
|
self.logger.info(f"Using config file {config.config_file}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user