3
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user