CLOUDSTACK-9784 : GPU detail not displayed in GPU tab of management server UI.

This commit is contained in:
Nitesh Sarda 2017-02-14 21:29:21 +05:30
parent 9d8eebf68d
commit 36abc63b91
1 changed files with 10 additions and 3 deletions

View File

@ -17228,9 +17228,16 @@
}
},
dataProvider: function (args) {
var items = gpugroupObj.vgpu.sort(function(a, b) {
return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
});
var items;
if(typeof(gpugroupObj.vgpu) != "undefined") {
items = gpugroupObj.vgpu.sort(function(a, b) {
return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
});
}
else {
items = gpugroupObj.vgpu;
}
$(items).each(function () {
this.maxresolution = (this.maxresolutionx == null || this.maxresolutionx == 0
|| this.maxresolutiony == null || this.maxresolutiony == 0)