mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Check if there is only 1 esx host
(cherry picked from commit 17ae93a6ad82ad25a9bfca1fbee2504eb8885cc9)
This commit is contained in:
parent
0e706cf293
commit
e4c1a68405
@ -971,8 +971,10 @@ function updateHostInfo(request,host){
|
||||
|
||||
if (host_info.TEMPLATE.HOST) {
|
||||
if (!(host_info.TEMPLATE.HOST instanceof Array)) {
|
||||
host_list_array = [host_info.TEMPLATE.HOST];
|
||||
} else if (host_info.TEMPLATE.HOST instanceof Array) {
|
||||
host_info.TEMPLATE.HOST = [host_info.TEMPLATE.HOST];
|
||||
}
|
||||
|
||||
if (host_info.TEMPLATE.HOST instanceof Array) {
|
||||
$.each(host_info.TEMPLATE.HOST, function(){
|
||||
var cpu_bars = generateCPUProgressBar(this, true);
|
||||
var mem_bars = generateMEMProgressBar(this, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user