add failure path to approveResources if there was an error retrieving pool state from proxmox or fabric

This commit is contained in:
2026-06-10 16:43:03 +00:00
parent f64c8899fe
commit 132e25b7f2
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -254,7 +254,10 @@ export default class PVE extends PVE_BACKEND {
// only add type if it is vm or ct (ie has vmid)
if (resource.vmid) {
const instance = await this.getInstance(resource.node, resource.vmid);
if (instance) {
if (instance === null) {
return null;
}
else {
instance.node = resource.node;
resources[resource.vmid] = instance;
}