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

Feature #1112: Fix onedatastore show output

This commit is contained in:
Carlos Martín 2012-02-10 19:01:20 +01:00
parent e76e1227d3
commit bab1573f31
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ class OneDatastoreHelper < OpenNebulaHelper::OneHelper
CLIHelper.print_header(str_h1 % "IMAGES", false)
CLIHelper.print_header("%-15s" % ["ID"])
datastore.user_ids.each do |id|
datastore.img_ids.each do |id|
puts "%-15s" % [id]
end
end

View File

@ -86,10 +86,10 @@ module OpenNebula
end
# Returns an array with the numeric image ids
def user_ids
def img_ids
array = Array.new
self.each("DATASTORE/ID") do |id|
self.each("IMAGES/ID") do |id|
array << id.text.to_i
end