1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #1487: remove *1024 disk (#4862)

Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
This commit is contained in:
Jorge Miguel Lobo Escalona 2020-06-02 10:12:20 +02:00 committed by GitHub
parent a4d7bebca8
commit 72f94732af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -659,11 +659,11 @@ define(function(require) {
if(Array.isArray(that.element.TEMPLATE.DISK)){
$.each(that.element.TEMPLATE.DISK, function(){
if (this.DISK_ID == disk_id){
disk_size = this.SIZE * 1024;
disk_size = this.SIZE;
}
});
} else {
disk_size = that.element.TEMPLATE.DISK.SIZE * 1024;
disk_size = that.element.TEMPLATE.DISK.SIZE;
}
var dialog = Sunstone.getDialog(DISK_RESIZE_DIALOG_ID);
dialog.setParams(