mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #722: Fix VM hostname string access. Add it to extended info tab.
This commit is contained in:
parent
7cfb8a71ca
commit
d7c66549c6
@ -590,7 +590,7 @@ function vMachineElementArray(vm_json){
|
||||
state,
|
||||
vm.CPU,
|
||||
humanize_size(vm.MEMORY),
|
||||
vm.HISTORY ? vm.HISTORY.HOSTNAME : "--",
|
||||
vm.HISTORY_RECORDS ? vm.HISTORY_RECORDS.HISTORY.HOSTNAME : "--",
|
||||
str_start_time(vm),
|
||||
vncIcon(vm)
|
||||
];
|
||||
@ -679,6 +679,10 @@ function updateVMInfo(request,vm){
|
||||
<td class="key_td">LCM State</td>\
|
||||
<td class="value_td">'+OpenNebula.Helper.resource_state("vm_lcm",vm_info.LCM_STATE)+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">Hostname</td>\
|
||||
<td class="value_td">'+ (vm_info.HISTORY_RECORDS? vm_info.HISTORY_RECORDS.HISTORY.HOSTNAME : "--") +'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">Start time</td>\
|
||||
<td class="value_td">'+pretty_time(vm_info.STIME)+'</td>\
|
||||
|
Loading…
x
Reference in New Issue
Block a user