feat: export ESXi host / Proxmox node per VM in offline JSON
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
28c6654f6b
commit
dc39c8f4ec
2 files changed
+5
-3
No files matched your search
@@ -75,6 +75,7 @@ def validate(data):
|
||||
raise ExchangeError("Die Datei enthält eine VM ohne Name oder Quelle.")
|
||||
vm.setdefault("interfaces", [])
|
||||
vm.setdefault("cluster", "")
|
||||
vm.setdefault("host", "")
|
||||
vm.setdefault("status", "offline")
|
||||
for key in ("vcpus", "memory", "disk"):
|
||||
vm[key] = int(vm.get(key) or 0)
|
||||
|
||||
Reference in new issue
Block a user