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
@@ -1,6 +1,6 @@
from fastapi import APIRouter
from app.core.config import settings
from app.core.config import get_parsed_servers
from app.models.schemas import ScanResponse
from app.services.scanner import scan_servers
@@ -9,4 +9,4 @@ router = APIRouter(prefix="/vms", tags=["vms"])
@router.get("/scan", response_model=ScanResponse)
async def scan_vms() -> ScanResponse:
return await scan_servers(settings.parsed_servers)
return await scan_servers(get_parsed_servers())