mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug in onevm show when the vm had only one history record
This commit is contained in:
parent
4fb4e1f30b
commit
61afbd3771
@ -208,7 +208,7 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
|
||||
|
||||
vm_hash=vm.to_hash
|
||||
|
||||
history=vm_hash['VM']['HISTORY_RECORDS']['HISTORY']
|
||||
history=[vm_hash['VM']['HISTORY_RECORDS']['HISTORY']].flatten
|
||||
|
||||
table.show(history)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user