mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
bug in onevm show when the vm had only one history record
This commit is contained in:
1 parent
4fb4e1f30b
commit
61afbd3771
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user