This commit is contained in:
2026-06-07 11:33:20 +02:00
parent 2bac6dc6be
commit c4c91ac45f
11 changed files with 380 additions and 9 deletions
@@ -2,7 +2,7 @@ from typing import Any, Dict, List, Optional
import httpx
from app.core.config import settings
from app.core.config import get_settings
from app.models.schemas import ProxmoxServerConfig, ServerScanStatus, VmRecord
from app.services.metadata import extract_duplicate_id
@@ -14,6 +14,7 @@ class ProxmoxClient:
self.errors: List[str] = []
async def __aenter__(self) -> "ProxmoxClient":
settings = get_settings()
self.client = httpx.AsyncClient(
base_url=f"{self.base_url}/api2/json",
headers={