fix client.py

This commit is contained in:
Bruno MATEU 2023-06-17 11:08:31 +02:00 committed by Robert Kaussow
parent 907f4cb6fb
commit 2cc3b68e49
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 1 additions and 4 deletions

View File

@ -45,10 +45,7 @@ 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")
if self.config.config["pve"]["token_name"]:
self.logger.debug("Using token login")
return ProxmoxAPI(
self.config.config["pve"]["server"],