diff --git a/backend/app.py b/backend/app.py index e54a877..8f70fc2 100644 --- a/backend/app.py +++ b/backend/app.py @@ -96,7 +96,7 @@ def health() -> HealthResponse: @app.get(f"{API_PREFIX}/storage/pools") def storage_pools(): - """Return available Proxmox storage pools that support disk images.""" + """Return available Proxmox storage pools that support VM disk images.""" pools = [] try: cfg = Path("/etc/pve/storage.cfg") @@ -126,10 +126,12 @@ def storage_pools(): result = [] for p in pools: if p.get("type") in ("lvmthin", "zfspool", "rbd", "dir"): - result.append({ - "name": p["name"], - "type": p["type"], - }) + content = p.get("content", "") + if "images" in content: + result.append({ + "name": p["name"], + "type": p["type"], + }) if not result: result.append({"name": "local-lvm", "type": "lvmthin"})