The size of VM state files and the size of unused disks not
referenced by any snapshot is not saved in the VM configuration,
so it's not available here either.

Signed-off-by: Fabian Ebner <f.eb...@proxmox.com>
---
 www/manager6/window/Migrate.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index 61bc6a49..9fc66a9b 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -269,7 +269,7 @@ Ext.define('PVE.window.Migrate', {
                                migration['with-local-disks'] = 1;
                                migration.preconditions.push({
                                    text:'Migration with local disk might take 
long: ' + disk.volid
-                                       +' (' + 
PVE.Utils.render_size(disk.size) + ')',
+                                       + (disk.size ? ' (' + 
PVE.Utils.render_size(disk.size) + ')' : ''),
                                    severity: 'warning'
                                });
                            }
-- 
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