fix: add debug logging for pvesm config per-pool to trace why images filter excludes pools

This commit is contained in:
Claus Lohmar 2026-07-27 10:43:10 +00:00
parent 4082250740
commit 6445d8894a

View file

@ -119,8 +119,9 @@ def storage_pools():
for cl in cp.stdout.split("\n"): for cl in cp.stdout.split("\n"):
if cl.strip().startswith("content"): if cl.strip().startswith("content"):
content = cl.strip().split(None, 1)[1] if len(cl.strip().split(None, 1)) > 1 else "" content = cl.strip().split(None, 1)[1] if len(cl.strip().split(None, 1)) > 1 else ""
except Exception: logger.info(" pool %s (%s) content=%r", name, stype, content)
pass except Exception as exc:
logger.warning(" pvesm config %s failed: %s", name, exc)
if "images" not in content: if "images" not in content:
continue continue
result.append({"name": name, "type": stype}) result.append({"name": name, "type": stype})