mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
bug #707: fixed date error in onevm show for 3.0
This commit is contained in:
parent
d38efff33e
commit
a332d31b16
@ -65,7 +65,7 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
|
||||
def format_resource(vm)
|
||||
str_h1="%-80s"
|
||||
str="%-20s: %-20s"
|
||||
|
||||
|
||||
CLIHelper.print_header(
|
||||
str_h1 % "VIRTUAL MACHINE #{vm['ID']} INFORMATION")
|
||||
puts str % ["ID", vm.id.to_s]
|
||||
@ -77,8 +77,10 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
|
||||
puts str % ["HOSTNAME",
|
||||
vm['/VM/HISTORY_RECORDS/HISTORY[last()]/HOSTNAME']] if
|
||||
%w{ACTIVE SUSPENDED}.include? vm.state_str
|
||||
puts str % ["START TIME", OpenNebulaHelper.time_to_str(vm['STIME'])]
|
||||
puts str % ["END TIME", OpenNebulaHelper.time_to_str(vm['ETIME'])]
|
||||
puts str % ["START TIME",
|
||||
OpenNebulaHelper.time_to_str(vm['/VM/STIME'])]
|
||||
puts str % ["END TIME",
|
||||
OpenNebulaHelper.time_to_str(vm['/VM/ETIME'])]
|
||||
value=vm['DEPLOY_ID']
|
||||
puts str % ["DEPLOY ID", value=="" ? "-" : value]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user