mirror of https://github.com/apache/cloudstack.git
Merge pull request #1942 from Accelerite/CS-50422
CLOUDSTACK-9784 : GPU detail not displayed in GPU tab of management server UI.ISSUE ================== When GPU tab of the host is selected on the management server UI, no GPU detail is displayed. RESOLUTION ================== In the javascript file "system.js" while fetching the GPU details, sort functionality in dataprovider is returning value as undefined and hence it throwing an exception. So handled the output as undefined gracefully to avoid exception. **Screenshot before applying fix :**  **Screenshot after applying fix :**  * pr/1942: CLOUDSTACK-9784 : GPU detail not displayed in GPU tab of management server UI. Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
This commit is contained in:
commit
61ce75e901
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue