add failure path to approveResources if there was an error retrieving pool state from proxmox or fabric
This commit is contained in:
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user