fix client.py

This commit is contained in:
Bruno MATEU 2023-06-17 11:08:31 +02:00 committed by GitHub
parent 19604ffe94
commit 16df5aadc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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