#!/usr/bin/env python3 """Read-only Proxmox storage/reference inventory; no third-party dependencies.""" import argparse import csv from datetime import datetime import json import math import os import shutil import textwrap from pathlib import Path import re import subprocess import sys VOLUME = re.compile(r"(? ').strip() if destination: destination = export_csv(destination, rows) display = ReportDisplay() display.line('Report saved', 'success') display.line(str(destination)) return 2 if warnings else 0 except (OSError, RuntimeError, ValueError, subprocess.TimeoutExpired) as exc: print(f'Disk report failed: {exc}', file=sys.stderr) return 1 if __name__ == '__main__': sys.exit(main())