iso and vztmpl files can be in subdirectories of a storage's directory.
In this case we must make clear where they are exactly.

Signed-off-by: Dominic Jäger <d.jae...@proxmox.com>
---
Useless without the patch for pve-storage.

 www/manager6/Utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index ad75c871..ccfd72fd 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -661,7 +661,7 @@ Ext.define('PVE.Utils', { utilities: {
                Ext.String.leftPad(data.channel,2, '0') +
                " ID " + data.id + " LUN " + data.lun;
        }
-       return data.volid.replace(/^.*:(.*\/)?/,'');
+       return data.volid.replace(/^.*:[^\/]*\//,'');
     },
 
     render_serverity: function (value) {
-- 
2.20.1

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to