From e3bc7929c69874b5b96c5f4d576e31d41171ff53 Mon Sep 17 00:00:00 2001 From: Claus Lohmar Date: Mon, 27 Jul 2026 07:08:02 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20storage=20pool=20list=20now=20filters=20?= =?UTF-8?q?by=20content=20type=20=E2=80=94=20only=20pools=20with=20'images?= =?UTF-8?q?'=20support=20are=20shown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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"})