in directory storages, we don't need the 'import/' part of the volumes, as that is implied in dir based storages
Signed-off-by: Dominik Csapak <d.csa...@proxmox.com> --- www/manager6/Utils.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index ff2fae25..ea6e30e8 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -1024,7 +1024,13 @@ Ext.define('PVE.Utils', { Ext.String.leftPad(data.channel, 2, '0') + " ID " + data.id + " LUN " + data.lun; } else if (data.content === 'import') { - result = data.volid.replace(/^.*?:/, ''); + if (data.volid.match(/^.*?:import\//)) { + // dir-based storages + result = data.volid.replace(/^.*?:import\//, ''); + } else { + // esxi storage + result = data.volid.replace(/^.*?:/, ''); + } } else { result = data.volid.replace(/^.*?:(.*?\/)?/, ''); } -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel