bug in onevm show when the vm had only one history record

This commit is contained in:
Javi Fontan committed 2011-07-11 11:54:10 +02:00
1 parent 4fb4e1f30b
commit 61afbd3771
1 file changed
+1 -1
+1 -1
View File
@@ -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