Commit 58191120e3b0

Vincent Demeester <vincent@sbr.pm>
2026-01-07 08:37:43
fix(ollama-exporter): Remove unused version_data variable
1 parent 04dc94f
Changed files (1)
tools
ollama-exporter
tools/ollama-exporter/ollama_exporter.py
@@ -171,8 +171,7 @@ async def verify_ollama_connection():
         async with httpx.AsyncClient(timeout=httpx.Timeout(10.0)) as client:
             response = await client.get(f"{OLLAMA_HOST}/api/version")
             if response.status_code == 200:
-                version_data = response.json()
-                logger.info(f"Connected to Ollama")
+                logger.info("Connected to Ollama")
             else:
                 logger.error(f"Failed to connect to Ollama server. Status code: {response.status_code}")
     except Exception as e: