From 2cc3b68e49b46fe564fce5972d3be6038bacfdf9 Mon Sep 17 00:00:00 2001 From: Bruno MATEU Date: Sat, 17 Jun 2023 11:08:31 +0200 Subject: [PATCH] fix client.py --- prometheuspvesd/client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/prometheuspvesd/client.py b/prometheuspvesd/client.py index e20e0ed..49e28ad 100644 --- a/prometheuspvesd/client.py +++ b/prometheuspvesd/client.py @@ -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"],