From 0ff760fe4a5e6c00fa2441bda0f4bc20cc31e4cc Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 4 Aug 2025 14:05:57 +0200 Subject: [PATCH] Ensure we pass mount object also from volumes code --- src/volumes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/volumes.js b/src/volumes.js index 77a49c6e1..ee6b79da8 100644 --- a/src/volumes.js +++ b/src/volumes.js @@ -165,7 +165,7 @@ async function update(id, mountOptions, auditSource) { // first try to mount at /mnt/volumes/-validation const testMount = Object.assign({}, mount, { hostPath: `${hostPath}-validation` }); await mounts.tryAddMount(testMount, { timeout: 10 }); // 10 seconds - await mounts.removeMount(testMount.hostPath); + await mounts.removeMount(testMount); // update the mount await mounts.tryAddMount(mount, { timeout: 10 }); // 10 seconds @@ -204,7 +204,7 @@ async function del(volume, auditSource) { if (volume.mountType === mounts.MOUNT_TYPE_MOUNTPOINT || volume.mountType === mounts.MOUNT_TYPE_FILESYSTEM) { safe(services.rebuildService('sftp', auditSource), { debug }); } else { - await safe(mounts.removeMount(volume.hostPath)); + await safe(mounts.removeMount(volume)); } }