fix ruff issues

This commit is contained in:
Bruno MATEU 2023-06-18 14:25:35 +02:00 committed by Robert Kaussow
parent 7613e43ca6
commit 12a53f5c89
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 2 additions and 2 deletions

View File

@ -121,12 +121,12 @@ class PrometheusSD:
if config.config["pve"]["token_name"] and not config.config["pve"]["token_value"]:
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"]:
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}")