1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

bug #563: delete empty columns from virsh list output

(cherry picked from commit 9f7b0864044abc146948f4e756810fae7ba83afb)
This commit is contained in:
Javi Fontan 2011-04-13 14:45:06 +02:00
parent e1f9fb3a67
commit 9b3ba5ceb8

View File

@ -118,7 +118,7 @@ private
lines=text.split(/\n/)[2..-1]
lines.map do |line|
line.split(/\s+/)[1]
line.split(/\s+/).delete_if {|d| d.empty? }[1]
end
end