diff --git a/nodejs/config/inventory.sqlite b/nodejs/config/inventory.sqlite index eb5adfc..7cc5e8e 100644 Binary files a/nodejs/config/inventory.sqlite and b/nodejs/config/inventory.sqlite differ diff --git a/nodejs/plugins/discovery/proxmox.js b/nodejs/plugins/discovery/proxmox.js index e59713d..8261bd0 100644 --- a/nodejs/plugins/discovery/proxmox.js +++ b/nodejs/plugins/discovery/proxmox.js @@ -45,7 +45,7 @@ module.exports = { }; // Ensure URL has no trailing slash - url = url.replace(/\\/+$/, ''); + url = url.endsWith('/') ? url.slice(0, -1) : url; const resources = []; const edges = [];