1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-26 10:03:37 +03:00

BUG: IMAGE_NAME and IMAGE_UNAME are not considered for showback

This commit is contained in:
Abel Coronado 2017-11-17 15:40:43 +01:00 committed by Ruben S. Montero
parent 9d43f75ed6
commit 19ca3ab64e

View File

@ -153,9 +153,9 @@ define(function(require) {
success: function(request, obj_files){
var totalGB = 0;
$.each(that.templateDISKS, function(ikey, ivalue){
if (ivalue.IMAGE_ID){
if (ivalue.IMAGE || ivalue.IMAGE_ID){
$.each(obj_files, function(jkey, jvalue){
if (ivalue.IMAGE_ID == jvalue.IMAGE.ID){
if ((ivalue.IMAGE && ivalue.IMAGE === jvalue.IMAGE.NAME && ivalue.IMAGE_UNAME === jvalue.IMAGE.UNAME) || (ivalue.IMAGE_ID && ivalue.IMAGE_ID === jvalue.IMAGE.ID)){
totalGB += jvalue.IMAGE.SIZE / 1024;
}
});