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:
parent
e76e1227d3
commit
bab1573f31
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user