Bläddra i källkod

removed unused variable

Tony Fernandez 7 månader sedan
förälder
incheckning
f2d7687ca3
1 ändrade filer med 0 tillägg och 1 borttagningar
  1. 0 1
      borgmatic/hooks/zabbix.py

+ 0 - 1
borgmatic/hooks/zabbix.py

@@ -60,7 +60,6 @@ def ping_monitor(hook_config, config, config_filename, state, monitoring_log_lev
         return
         return
 
 
     # Determine the authentication method: API key or username/password
     # Determine the authentication method: API key or username/password
-    auth = None
     if api_key is not None:
     if api_key is not None:
         logger.info(f'{config_filename}: Using API key auth for Zabbix')
         logger.info(f'{config_filename}: Using API key auth for Zabbix')
         headers['Authorization'] = 'Bearer ' + api_key
         headers['Authorization'] = 'Bearer ' + api_key