Skip to content

Commit 36abc63

Browse files
committed
CLOUDSTACK-9784 : GPU detail not displayed in GPU tab of management server UI.
1 parent 9d8eebf commit 36abc63

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

ui/scripts/system.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17228,9 +17228,16 @@
1722817228
}
1722917229
},
1723017230
dataProvider: function (args) {
17231-
var items = gpugroupObj.vgpu.sort(function(a, b) {
17232-
return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
17233-
});
17231+
var items;
17232+
17233+
if(typeof(gpugroupObj.vgpu) != "undefined") {
17234+
items = gpugroupObj.vgpu.sort(function(a, b) {
17235+
return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
17236+
});
17237+
}
17238+
else {
17239+
items = gpugroupObj.vgpu;
17240+
}
1723417241
$(items).each(function () {
1723517242
this.maxresolution = (this.maxresolutionx == null || this.maxresolutionx == 0
1723617243
|| this.maxresolutiony == null || this.maxresolutiony == 0)

0 commit comments

Comments
 (0)