mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-06-01 07:29:56 +02:00
fix client.py
This commit is contained in:
parent
907f4cb6fb
commit
2cc3b68e49
|
@ -46,9 +46,6 @@ class ProxmoxClient:
|
|||
)
|
||||
|
||||
if self.config.config["pve"]["token_name"]:
|
||||
if !self.config.config["pve"]["token_value"]:
|
||||
self.logger.error("Token name require token value to be set ! Fallback to password authentification")
|
||||
|
||||
self.logger.debug("Using token login")
|
||||
return ProxmoxAPI(
|
||||
self.config.config["pve"]["server"],
|
||||
|
|
Loading…
Reference in New Issue
Block a user